Will Update work in the Insert Scripted Rest API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2022 03:00 AM
Hello all,
I have used scripted rest API (Insert), POST method to Insert the data, It worked fine.
There are few records inserted, all good here but later I have added 1 or 2 fields in that table and updated the scripted accordingly, just to update those 2 fields without disturbing the earlier records but the problem here is now records or inserting again as duplicates even though we have check point to stop duplicates.
Update function will not work in the Insert scripted rest API?
Please help!
Thanks,
Ksnow
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2022 02:14 AM
Hi Ksnow,
POST method is always for creation, If you want to update the values on the newly added 2 columns, you should be using PUT.
And what restrictions you have setup, You can only do it in your instance before sending the payload. Once it is send, restrictions of the third party tool to which you are integrating applies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2022 03:37 AM
Hi
Thanks for the response.
I have used POST method to update the field in another script and it worked fine for me.
I am not sure about which restrictions you're talking, could you please explain me in detail?
I am new to APIs stuff.
Thanks,
Ksnow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-30-2022 12:12 AM
This is not correct, you can still update records using the POST method itself. It all depends on how you are handling it within the logic written in your Scripted Rest API as far as I know.
Regards,
Shloke
Regards,
Shloke