none
Replacing a value in multivalued attribute - Action workflow RRS feed

  • Question

  • There are two attributes: PositionType(singlevalued attribute) and PositionTypes (multivalued attribute).

    Adding or changing PositionType should reflect in PositionTypes (multivalued attribute).

     Question:

     

    I can add the new value of PositionType to PositionTypes. But how can I delete the old value of PositionType from PositionTypes.

    I couldn’t find a lookup grammar to code in Action workflow. I tried using /Delta and /ComparedRequest.

    Friday, November 16, 2012 11:32 PM

Answers

  • Frank,

    I got the solution. I used

    A) authorization workflow

    B)in action activity, I used //target/PositionType (to get the old value) and //delta/PositionType (to get the new value).

    Thanks!

    • Marked as answer by fim_sc Saturday, November 17, 2012 11:19 PM
    Saturday, November 17, 2012 11:19 PM
  • Yes, that's what I would recommend. Just be aware that if the change comes through the sync service, it will bypass your authorization rule - otherwise, you should be good.

    Frank C. Drewes III - Architect - Oxford Computer Group

    • Marked as answer by fim_sc Monday, November 19, 2012 2:52 PM
    Monday, November 19, 2012 6:53 AM

All replies

  • So are you saying that if PositionType changes from A to B..

    You want to add B to PositionTypes and remove A from PositionTypes?


    Frank C. Drewes III - Architect - Oxford Computer Group

    Saturday, November 17, 2012 7:47 PM
  • yes.
    Saturday, November 17, 2012 8:41 PM
  • Frank,

    I got the solution. I used

    A) authorization workflow

    B)in action activity, I used //target/PositionType (to get the old value) and //delta/PositionType (to get the new value).

    Thanks!

    • Marked as answer by fim_sc Saturday, November 17, 2012 11:19 PM
    Saturday, November 17, 2012 11:19 PM
  • Yes, that's what I would recommend. Just be aware that if the change comes through the sync service, it will bypass your authorization rule - otherwise, you should be good.

    Frank C. Drewes III - Architect - Oxford Computer Group

    • Marked as answer by fim_sc Monday, November 19, 2012 2:52 PM
    Monday, November 19, 2012 6:53 AM
  • Thanks Frank. So, is there any other solution which can be enforced by sync rule?
    Monday, November 19, 2012 2:53 PM
  • Frank, How can I add a string value to a multivalued attribute?

    InsertValues("string")..will this work?

    Thursday, December 13, 2012 3:56 PM
  • Yes, Here's an example for setting an UpdateResource (named updateGroup) UpdateRequestParameter collection to add a member to a static group

    updateGroup.UpdateParameters = new UpdateRequestParameter[]

    {
       new UpdateRequestParameter("ExplicitMember",
       UpdateMode.Insert,
       parentWorkflow.TargetId)

    };


    Frank C. Drewes III - Architect - Oxford Computer Group

    Friday, December 14, 2012 2:18 PM
  • Thanks Frank! I am new to FIM and I haven't got to that point that. Where would I write this code?
    Saturday, December 15, 2012 9:37 PM
  • It would be in a custom workflow activity. Here's a sample activity to give you some idea what's involved.

    http://msdn.microsoft.com/en-us/library/windows/desktop/ff859524(v=vs.100).aspx


    Frank C. Drewes III - Architect - Oxford Computer Group

    Sunday, December 16, 2012 7:11 PM