You are viewing limited content. For full access, please sign in.

Question

Question

Dynamically added template fields

asked on October 11, 2017

Good afternoon,

We are exploring a project that could potentially be tackled with Workflow. We currently have a workflow that uses an XML file to assign values to metadata field.

Now, some of these files have different or additional XML tags.

For example

file1.xml

<VerifiedDate>Verified Date</VerifiedDate>

file2.xml

<VerifiedDate>Verified Date</VerifiedDate>

<somethingElse>somethingElse</somethingElse>

We are using an "Assign Field Values" activity to assign the keyfields that come from file1.xml. (see attached image)

We wanted to know if there is a way to append additional fields "create fields on the fly" into the "Assign Field Values" activity so that when there is only one field, only one field get created and on-the-fly...so in the example for field2.xml the template would have the fields

VerifiedDate

somethingElse

Any ideas or suggestions on this?

Thanks

Raul Gonzalez

appentToTemplate.PNG
0 0

Replies

replied on October 11, 2017

Use a conditional decision to determine which field to assign.

 

 

0 0
replied on October 11, 2017

Thanks Erik,

 

Now, what if you don't exactly know what the name fields are going to be. For example, if one xml contains <abc>abc</abc> and another <rwn>rwn</rwn>. Since there can be many combinations, there would have to be many conditional decisions.

Is there a way to assign the fields as they are read; dynamically. 

In other words, the field wouldn't exist in the template until it is read.

Thank you,

Raul Gonzalez

0 0
replied on October 11, 2017

Sorry, I don't know of any way to create fields dynamically.

0 0
replied on October 11, 2017

Yes, I know it was a long shot. smiley

But let me know if you know of at least a different way that this task could be tackled.

Thank you,

Raul Gonzalez

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.