1

I am developing a custom activity and I want to get the InArgument and eventDefinitionKey in /validate endpoint : enter image description here

The req.body have just some properties here:

enter image description here

So, Can anyone let me know how can I get that data in validate endpoint ? Thank you a lot for your help.

2
  • maybe try console.log(req) to check what is in the payload, should be stored in req.data
    – Bo Hu
    Commented Apr 21, 2023 at 5:18
  • Thanks for your answer but req.data is undefined and I don't see any things useful from req except req.body. I have an idea to use interactionId to get Journey data through SF Rest API. But I have a lot of organizations and there is no information to specify the organization in validate endpoint.
    – hieu dose
    Commented Apr 21, 2023 at 7:14

1 Answer 1

0

You need to create a JSON Object with the data you want to send and set it to the configurationArguments.validate.body attribute. This object will be added to the default attributes sent in the call. Bear in mind that if useJWT: "true", then you need to JSON.stringify the JSON object before setting it to body so that the content-type isn't automatically changed to application/json.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .