How to define a variable based on the request that is made?

Hi everyone, I’m implementing a form custom in which, based on who made the request I retrieve some details of the user that made the request . As you can see from this image:


I make the same HTTP Request but on two different identities based on the result of the previous IF. The point is that i will use the result of one of each HTTP Request later on. The point is that i don’t want to duplicate the branches of the workflow, so there is a way to consider only the HTTP Request that is not null in a future “Define Variable” without making another if ? In the next define variable I’m using “$.HTTPRequest.body…” , but it is not working when the if of the image is going to the HTTPRequest3.
This is the body of the Define Variable:

{
  "name": "Governance_Group_Name",
  "description": "a",
  "transforms": [
    {
      "id": "sp:transform:concatenate:string",
      "input": {
        "variableB.$": "$.hTTPRequest.body.attributes.company1Code"
      }
    }
  ],
  "variableA": "Approvers_"
}

use a variable instead of compare and within the variable use replace to place the value of the id of the person you want to http get based on the id of the requestor. Use this variable in the http

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.