Need to send two rest post messages with one UI action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 01:23 AM
Hello Team,
Am trying to use two rest messages (post) in one UI action, but only first rest message is getting triggered.
Please help me with any suggestions.
Below is the code.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 02:10 AM
Please put proper quotes 'abc1'
sm1 = new sn_ws.RESTMessageV2('abc1', 'xyz1');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 02:14 AM
Yes yes done that. still same
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 02:22 AM
Did you try to execute Test Run under Rest messages?
Is it working?
Also, please try to remove current.update() and check
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 02:30 AM
After running the test for rest message, i got 400 error stating
{"type":"https://tools.ietf.org/html/rfc7231#section-6.5.1","title":"One or more validation errors occurred.","status":400,"traceId":"","errors":{"ProductId":["ProductId missing or invalid."],"LocationId":["LocationId missing or invalid."]}}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 02:33 AM