0D54z00009yRPncCAGOkta Identity EngineWorkflowsAnswered2025-09-13T09:01:51.000Z2024-01-21T16:30:12.000Z2024-01-24T21:40:52.000Z

0bp9x (0bp9x) asked a question.

How do I escape a dot (.) if it's a necessary part of a key name in an object construct?

Hello! I'm working with the CVENT api, and one necessary key in the body is "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": {

"sendLoginDetails": true

}

 

 

The problem I'm running into is that when the entire body object is formed, the key displays exactly as-is. By the time the PUT request is executed, the key changes to:

{

 "urn:ietf:params:scim:schemas:extension:enterprise:2": {

  "0:User": {

   "sendLoginDetails": true

  }

 }

 

When naming the attribute/key in the Object Construct, how can I escape the period so it doesn't split the key into 2 pieces as it did above? I've tried using both of these encoded strings as the Object Construct attribute name:

urn%3Aietf%3Aparams%3Ascim%3Aschemas%3Aextension%3Aenterprise%3A2%2E0%3AUser

"urn%3Aietf%3Aparams%3Ascim%3Aschemas%3Aextension%3Aenterprise%3A2%2E0%3AUser"

 

And neither fixed the issue (still get a 500 response error indicating the key is wrong)

 


  • 0bp9x (0bp9x)

    Image is not available
    Image is not available

    Expand Post
  • a0n5s (a0n5s)

    is it a Default api for Default okta workflow connect? or parse it by json function in okta workflow?

  • TimL.58332 (Workflows)

    @0bp9x (0bp9x)​  -- I do remember running into this at some point in the past. I think there might already be a defect around it.

     

    However, to meet your needs leverage a compose + JSON parse.

     

    image 

    Keep in mind Compose can be dynamically set also. So if the object you are building is following some schema and you have dynamic properties those can be fed dynamically into the compose then converted into a type:object using JSON parse.

    Expand Post
  • 0bp9x (0bp9x)

    @TimL.58332 (Workflows)​ Thank you! Out of curiosity though, how would I go about handling multiple objects within the list? I'm performing a PUT call with data, and values omitted will result in the user losing information

  • TimL.58332 (Workflows)

    @0bp9x (0bp9x)​ 

     

    I am not entirely sure what you are asking. You essentially build out the schema you want then drop in the values dynamically. This is basically what you have to do when working with an API that only leverages XML and is a workaround in this scenario.

     

    There is a "Stringify" card available that can convert lists/objects to strings that can be then fed into a Compose card.

     

    Here's an example expanding on what i showed previously.

     

    image 

    Output:

     

    {

    "mainList": [

    "val1",

    "val2",

    "val3"

    ],

    "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": {

    "sendLoginDetails": true

    }

    }

     

     

     

    Expand Post
This question is closed.

Recommended content

No recommended content found...