This is a public Forum  publicRSS

Topic

    JJ
    Get current object data in custom model process...Answered
    Topic posted December 7, 2017 by JJPro 
    16 Views, 3 Comments
    Title:
    Get current object data in custom model process (CPM)
    Content:

    Please see code below - just fiddling with some random stuff at this point. I have the if/else statements. My question is how would I check the current value of let's say the product, category or queue to be additional conditions on the if/else statement

    Code Block:

    Best Answer

    Suresh Thirukoti

    Current value is always $incident object values and for Update action, if you want previous values, then you can $incident->prev

    For example, current value of Products is $incident->Products->LookupName and its previous value is $incident->prev->Products->LookupName  in Update action

    ~Suresh

    Answer

     

    • Suresh Thirukoti

      Current value is always $incident object values and for Update action, if you want previous values, then you can $incident->prev

      For example, current value of Products is $incident->Products->LookupName and its previous value is $incident->prev->Products->LookupName  in Update action

      ~Suresh

    • JJ

      Realised as soon as I posted but thank you :-)

    • Suresh Thirukoti

      Thanks JJ for confirmation but actually I see that you have some posting machine or something as posts are coming at break neck speed wink