cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
aryans
Level 3

Want to access MSI property in a custom action in Roll back sequence

Hi,

Is there any way I can get the MSI properties in a custom action in rollback sequence?

Aryan
Labels (1)
0 Kudos
(4) Replies
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

Rollback custom actions can only access property information through the CustomActionData property (the same as deferred custom actions). To access property information, a property with the name of the rollback custom action would need to be set with all property values the rollback action needs.
0 Kudos
aryans
Level 3

joshstechnij wrote:
Rollback custom actions can only access property information through the CustomActionData property (the same as deferred custom actions). To access property information, a property with the name of the rollback custom action would need to be set with all property values the rollback action needs.


If I understand you correctly, if I am creating a custom action with name customAction_Rollback, then I need to create a property with name customAction_Rollback and its value will be sequence of properties I need, in some sequence separatd by some delimiter? Please let me know if I am wrong.
0 Kudos
joshstechnij
Level 10 Flexeran
Level 10 Flexeran

Yes, your description is correct for passing CustomActionData to the rollback action.
0 Kudos
aryans
Level 3

Thanks a lot. I shall give it try!!!
0 Kudos