Hello,
Can you please assist? I am trying to use the following in a Variable to pass as a Body to a Web Activity.
I am getting the following error:
ErrorCode=InvalidTemplate, ErrorMessage=The expression 'concat('{
"EmployeeNumber":"' @activity('Look Up Employee ID in Success Factors').output.values.employeeid','"
"FirstName": "Henry",
"LastName": "Loescher",
"EmploymentStatuses": {
"Items": [
{
"EmployeeNumber": "010004",
"EffectiveStart": "2017-01-15T00:00:00",
"EmploymentStatus": {
"XRefCode": "ACTIVE"
},
"PayType": {
"XRefCode": "Salaried",
"ShortName": "string",
"LongName": "string",
"LastModifiedTimestamp": "2020-12-04T04:42:27.193Z"
},
"PayClass": {
"XRefCode": "FT"
},
"BaseSalary": 10.25,
"EmploymentStatusReason": {
"XrefCode": "NEWHIRE"
}
}
]
}
}
)' )' is not valid: the string character '@' at position '34' is not expected."
Here is my Variable...I'm trying to put the value of employeeid in the string:
@markus.bohland@hotmail.de ('{
"EmployeeNumber":"' @activity('Look Up Employee ID in Success Factors').output.values.employeeid','"
"FirstName": "Henry",
"LastName": "Loescher",
"EmploymentStatuses": {
"Items": [
{
"EmployeeNumber": "010004",
"EffectiveStart": "2017-01-15T00:00:00",
"EmploymentStatus": {
"XRefCode": "ACTIVE"
},
"PayType": {
"XRefCode": "Salaried",
"ShortName": "string",
"LongName": "string",
"LastModifiedTimestamp": "2020-12-04T04:42:27.193Z"
},
"PayClass": {
"XRefCode": "FT"
},
"BaseSalary": 10.25,
"EmploymentStatusReason": {
"XrefCode": "NEWHIRE"
}
}
]
}
}
)' )
Thanks!
Mike Kiser