Hi,
I want to externalise the SharePoint site URL and SiteList Name, which I am able to do using expressions in the data flow.
I am updating some of the Meta Fields on SharePoint Desitnation based on the Source SharePoint. So I am using following steps-
I upload a file to a SharePoint document library using a File System Task and the UNC path:
On posting of the file, this automatically creates a record in the document library with a lot of missing fields
1) To fill in these fields, I use a Data Flow Task with a SharePoint List Source to pull the record that was just created.
- To do a filtered pull, you need to specify the where clause in the CamlQuery custom property. Here’s what it looks like for this project:
2) <Query><Where><Eq><FieldRef Name='LinkFilename'/><Value Type='Text'>XYZ.zip</Value></Eq></Where></Query>
- The fields that I pull are the ID (necessary for updating SP List records) and all of the other fields that I need to change.
- Next, I use a Derived Column transformation to fill in the missing fields with the values that I need (I use variables or variable expressions so, I can externalize all of this)
- Finally, I use a SharePoint List Destination to do the update
3) I set the BatchType to “Modification” and pass through the ID (which is the PK on the SharePoint list) and the rest of the fields
But my problem is as I want to make this DYNAMIC (dynamic Site URL and corresponding column name). Please help me how to handle that in the Derived Columns as there will be the varied columns names in different Site URL.
Thanks,
Madhur
madhur_ms