Hi,
The payload is sending a static rather than the variable when I am using this:
“displayName”: “{{$.getIdentity.attributes.displayName}}”,
How am I meant to send the variable over?
Thanks
Hi,
The payload is sending a static rather than the variable when I am using this:
“displayName”: “{{$.getIdentity.attributes.displayName}}”,
How am I meant to send the variable over?
Thanks
Hi Phil,
Can you share more details from the workflow trigger.
thanks
Hi Shailee,
The workflow is functioning fine (I think), it triggers this which gets sent, but the variables are not getting sent:
"HTTP Request": {
"actionId": "sp:http",
"attributes": {
"jsonRequestBody": {
"accountActive": "true",
"allEPOS": {
"epos": "{{$.getIdentity.attributes.enactorEpos0}}"
},
"allEmployments": {
"role": "{{$.getIdentity.attributes.enactorRole0}}"
},
"displayName": "{{$.getIdentity.attributes.displayName}}",
"email": "{{$.getIdentity.attributes.email}}",
"employeeNumber": "{{$.getIdentity.attributes.enactorid}}",
"lastName": "{{$.getIdentity.attributes.lastname}}",
"loginCode": "{{$.getIdentity.attributes.enactorid}}",
"password": "{{$.getIdentity.attributes.adFirstPassword}}",
"personalEmail": "{{$.getIdentity.attributes.personalEmail}}",
"phone": "{{$.getIdentity.attributes.phone}}",
"preferredName": "{{$.getIdentity.attributes.preferredFirstName}}",
"primaryCountry": {
"country1": "{{$.getIdentity.attributes.country}}",
"country2": "{{$.getIdentity.attributes.countryAlpha2}}",
"country3": "{{$.getIdentity.attributes.countryAlpha3}}",
"country4": "{{$.getIdentity.attributes.countryNumeric}}"
},
"primaryEmployment": {
"businessType": "{{$.getIdentity.attributes.businessType}}",
"companyName": "{{$.getIdentity.attributes.company}}",
"costCentre": "{{$.getIdentity.attributes.costCentre}}",
"department": "Retail Optics",
"division": "Retail Optics",
"employeeType": "{{$.getIdentity.attributes.employeeType}}",
"isApprentice": "false",
"isContingent": "false",
"isDirector": "false",
"isManager": "{{$.getIdentity.attributes.enactorIsmanager}}",
"jobClassification": "{{$.getIdentity.attributes.jobClassification}}",
"jobTitle": "{{$.getIdentity.attributes.title}}",
"locationName": "{{$.getIdentity.attributes.location}}",
"managerId": "{{$.getIdentity.attributes.managerIdPrestart}}",
"managerName": "{{$.getIdentity.attributes.managerNameCustom}}",
"primaryEPOS": "{{$.getIdentity.attributes.primaryEpos}}",
"startDate": "{{$.getIdentity.attributes.startDate}}"
},
"sAMAccountName": "{{$.getIdentity.attributes.liveSamaccountname}}",
"salutation": "{{$.getIdentity.attributes.epayTitle}}",
"userPrimaryRole": "{{$.getIdentity.attributes.enactorRoleCode}}",
"userPrincipalName": "{{$.getIdentity.attributes.adUpn}}",
"userStatus": "1",
"username": "{{$.getIdentity.attributes.liveSamaccountname}}"
},
"method": "patch",
"requestContentType": "json",
"requestHeaders": {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": "529409c3e6ba42f5af58ced305d42711"
},
"url": "https://apimem4qsis001.azure-api.net/api/users/{{$.getIdentity.attributes.liveSamaccountname}}/update?app=Enactor"
},
"description": "API Call to Enactor.\nNo End Date. Only EPOS0",
"nextStep": "End Step — Success",
"type": "action",
"versionNumber": 2
},
Hi Phil, yes that is the way, it works for me in other workflows. Other attributes are being sending as the literal ${{xxxxxxxx}} or as its vaue?
This is a snip from the payload received:
Its not sending the value
Hello Phil,
If there’s a missing attribute from the identity’s attributes then it will result in passing of Static Values for the other attributes as well. So you need to make sure that every attribute you are passing in your HTTP Request is present in Identity’s attributes.
You can test it by sending an single existing attribute to the HTTP Request.
Thank You,
Ibrahim
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.