Azure blob storage with SNOW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2023 04:08 PM
Hi All,
I am a beginner to ServiceNow.I am trying to upload an attachment from ServiceNow to storage container using flow designer. I am using the Upload attachment to container action in Azure blob storage spoke. But I am not able to choose the datapill for the metadata (data type is array.object). How do I get the metadata ? Is it the metadata of the attachment?
It would be great if someone could let me know of the steps to upload a attachment from ServiceNow to Azure blob container.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2023 11:20 PM
Metadata is not mandatory....
If you want to set the medata data , you need to create a array.object data by yourself and set it to the parameter.
array.object : A container for objects. Adds a read-only child item of type Object, which displays the Add Child Item option.
sample code (untested)
var meta1 = "hello";
var meta2 = "world";
var arrayobject = [];
arrayobject .push(meta1);
arrayobject .push(meta2);
below pic shows the meatadata of the Azure blob storage file (something like additional information).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2023 09:43 AM
Hi,
Thank you for the reply.
But how do I set a metadata of datatype array.object in the flow. I tried to do it using the flow variables but flow variables accept only data types of string, integer, JSON, Reference and true/false.
Is there any way to add metadata as a variable of datatype array.object in the flow?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2023 05:29 PM - edited 02-02-2023 05:31 PM
HI@vijila
I don't have the spoke in my instance ,so i can't have a try .
You can use flow action to create and return array.object type data , and then set the action result to the spoke parameter.(Maybe not a best way,but i think it can work。)
And I see a "+" button on the right side of the parameter from your pic.
Maybe this button will change the input format from array.object to strings(one or more line to get input) when you click it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2023 05:22 AM
Hi... Can you please guide me how to establish a connection with azure blob storage with out spokes?