Getting base64 encoded data of an attachments of request in a scripted rest api
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2021 07:57 AM
Hi,
We have a custom table that extends request table . Lets take table name as ABC
We have a record producer that creates tickets in this ABC table
this record producer has a variable of type Macro - which is an OOB attachment widget.
I have a scripted rest api that pulls all the variables data on the record producer
Now our customer is using second api call which is OOB to get the attachment content. the requirement here is the a scripted api call is returning empty value for attachment variable, here the customer wants to get base64 encodedd data of all the attachments so that he can avoid the second api call.
how i can code my scripted rest api to get all attachments base64 encoded data with the scripted rest api
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2021 01:21 AM
Hope you are doing good.
Did my reply answer your question?
If my response helped you please mark it correct to close the question so that it benefits future readers as well.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2021 12:27 AM
Any update on this?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2022 12:43 AM
Hope you are doing good.
Did my reply answer your question?
If my response helped you please mark it correct to close the question so that it benefits future readers as well.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2022 09:25 PM
Hope you are doing good.
Did my reply answer your question?
Would you mind marking best response as correct to close the question so that it benefits future readers as well.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2024 05:18 AM - edited 11-14-2024 05:27 AM
Hi @Ankur Bawiskar,
I have tried all the possible ways as per your suggestions in different community threads but still I'm unable to convert the attachment to base64encode in Salesforce spoke flow action. getting the below error:
Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke