RESTMessageV2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2024 06:26 AM
Hello ,
I'm trying to send attachments from my csm personal developer instance to Azure storage account. I have an application registered on the azure portal and also have a storage account created. I have registered the application created in azure on my PDI instance under Application registry as Oauth provider as below.
For testing purpose I have built an after insert BR on the attachment table . Below is the code: I'm using setAuthenticationProfile function to set OAuth and the sys_id of the oauth_entity_profile.
Error shows:
Can anyone help with the steps for authenticating via Oauth entity profile and the checks required?
On azure side the application is registered and my secret is created. API permission is added to the application as 'user.impersonation' for the storage account that I created on the azure portal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2024 07:05 AM
to send 1 file add this line after line 13
grAttachment.next();
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader