<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00009uMM4lCAGOkta Identity EngineWorkflowsAnswered2024-01-12T07:33:12.000Z2024-01-11T12:26:21.000Z2024-01-12T07:33:12.000Z
Object Child Flows

Hej Okta Pros,

 

I got a workflow that runs if there's a profile change for a user. The flow should send out a slack notification that posts the changed fields and their new values.

 

I want to create a string that looks like this (Slack Message Blocks):

 

```json

{

"type": "mrkdwn",

"text": "*Key1*\nValue"

}

{

"type": "mrkdwn",

"text": "*Key2*\nValue"

}

{

"type": "mrkdwn",

"text": "*Key3*\nValue"

}

```

 

To get an object with the fields that changed and their values, I read the user profile and then run "map" to iterate over this object.

 

The problem is that when I use the map card, I don't get any results back. What am I doing wrong?

 

Is there even a better way to achieve all this?

 

Help much appreciated.

Thank you!

 

Helper Flow:

/help/servlet/rtaImage?refid=0EM4z000007oBul

Main Flow:

/help/servlet/rtaImage?refid=0EM4z000007oBug


  • TimL.58332 (Workflows)

    @CarstenW.33950 (SFLX)​  -- I leveraged Reduce to match the "Example" output you provided. It clearly isn't valid JSON but it matches.

     

    Attached an example flopack. You can just set an OktaUserID in the leading assigncard and run it (make sure both flows are turned on) to see an example.

    Expand Post
    Selected as Best
  • TimL.58332 (Workflows)

    @CarstenW.33950 (SFLX)​  -- I leveraged Reduce to match the "Example" output you provided. It clearly isn't valid JSON but it matches.

     

    Attached an example flopack. You can just set an OktaUserID in the leading assigncard and run it (make sure both flows are turned on) to see an example.

    Expand Post
    Selected as Best
This question is closed.
Loading
Object Child Flows