Assets setting are being reset?
Hi,
I am using web services to change the metadata set of a large number of index blocks. I was able to make the change, however all of the settings on the index blocks were reset to their default value. Is there a way to prevent the index blocks from being reset, and remember what their previous settings were? Also does this happen on other asset types when you don't give each specific setting? I ask because in the not too distant future I am going to have to change the configuration set and content type of a few thousand assets and I don't want to loose their settings as well.
Thanks!
Discussions are closed to public comments.
If you need help with Cascade CMS please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Ryan Griffith on 25 May, 2016 12:18 PM
Hi Adam,
That is correct, unless you pass the existing asset data back into the edit operation, editing the asset will result in default values being written. This is because the operation does not merge the data, so you are essentially passing no data into the edit. (Hope that makes sense).
Generally, the process is to read the asset(s), update the appropriate data within the returned asset data and pass that data back into the edit operation.
Please let me know if you have any questions.
Thanks!
2 Posted by Adam on 25 May, 2016 02:29 PM
That makes sense, I'll go ahead and give it a try. Thanks Ryan!
3 Posted by Ryan Griffith on 25 May, 2016 02:57 PM
Not a problem at all, Adam. Please keep us posted on how things work out, or if you have any additional questions.
Thanks!
4 Posted by Wing Ming Chan on 03 Jun, 2016 04:45 PM
Adam,
Just want to add a note here. There is a bug in Cascade web services wrt index blocks. If an index block is used to index blocks, the
blockXML
property is missing altogether in the wsdl. After such a block is modified by web services, the property has to be hand-edited if the default value is not used. If you are modifying a lot of index blocks, make sure you have a list of names of blocks that index blocks.Wing
5 Posted by Ryan Griffith on 03 Jun, 2016 07:59 PM
Yes, thank you for the reminder Wing. I've assigned the associated ticket to this discussion so you can track the progress (upper right-hand corner of this page).
Adam, I'm going to go ahead and close this discussion, please feel free to comment or reply to re-open if you have any additional questions or issues.
Have a great day!
Ryan Griffith closed this discussion on 03 Jun, 2016 07:59 PM.