Azure blob storage with SNOW

vijila
Giga Contributor

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?

vijila_0-1675296416338.png

It would be great if someone could let me know of the steps to upload a attachment from ServiceNow to Azure blob container.

 

5 REPLIES 5

newhand
Mega Sage

@vijila 

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).

 

1.png

Please mark my answer as correct and helpful based on Impact.

vijila
Giga Contributor

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?

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?

 

 

 

 

 

 

 

Please mark my answer as correct and helpful based on Impact.

SR6112
Tera Contributor

Hi... Can you please guide me how to establish a connection with azure blob storage with out spokes?