-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Metadata not updated #20
Comments
Take a look at this recipe - you need to provide file name option: [{
fileName: 'pet 123122.xml',
metadata: {
'__metadata':{type:'SP.Data.Pet_x0020_97_x0020_ArchiveItem'},
'Pet Name': 'Doggy McDogFace',
'Pet ID#': '666',
'Title':'McDogFace is awesome'
}
}]
glob: 'xml/*.xml',
notification: true,
folder: '/Pet%2097%20Archive',
filesMetaData: [{
fileName: 'pet 1.xml',
metadata: {
'__metadata':{type:'SP.Data.Pet_x0020_97_x0020_ArchiveItem'},
'Pet Name': 'Doggy McDogFace',
'Pet ID#': '666',
'Title':'McDogFace is awesome'
}
},
{
fileName: 'pet 2.xml',
metadata: {
'__metadata':{type:'SP.Data.Pet_x0020_97_x0020_ArchiveItem'},
'Pet Name': 'Cool dog',
'Pet ID#': '777',
'Title':'McDogFace is awesome'
}
}] |
Ah that was it. Also the Field names needed be escaped as Pet_x0020_Name and Pet_x0020_ID_x0023_ Thank you, you are doing awesome work! |
Right, actually internal names should be used as field names. |
Thx harry, That was just what I needed!! /Steen Fra: Sergei Sergeev [mailto:notifications@github.com] Take a look at thishttps://github.com/s-KaiNet/spsave/blob/master/docs/Recipes.md#save-file-using-its-name-and-content-update-metadata-for-the-file recipe - you need to provide file name option: [{
}] fileName required, because when using globs like xml/., spsave needs to know how to map each file to metadata. For multiple files you will write: glob: 'xml/*.xml',
— |
Hi there,
Trying to update some custom metadata with a glob. Here are my options:
The file uploads just fine, but Pet Name, ID and title don't get updated. Not sure I'm doing something wrong. Any help will be greatly appreciated.
The text was updated successfully, but these errors were encountered: