This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Synchro Script Comparison between two Start Dates

Hello, 

I want to assign an Apperance Profile. Therefore I need 3 conditions. 

1. I only want Tasks from the same segment which is written in the column "Name" of Task  (in this example " TTT")

2. I only want the Tasks which have the user field value "XXX" and "YYY" in the User Field "BB"

3.  I only want the tasks, if they have the same start date. 

That is what I got so far: 

TASK.ASSIGNMENT (TASK(TASK.UFV("BB")>="XXX" ).PROPERTY("Start") == TASK.(TASK.UFV("BB")>="YYY" ).PROPERTY("Start") AND TASK.NAME>="TTT" ) SET_PROPERTY ( PROPERTY("Appearance Profile"), ALL_USE_PROFILE( NAME>= "XXX + YYY" ))
I know that following things work: 
TASK.ASSIGNMENT(TASK.NAME>="TTT" ) SET_PROPERTY ( PROPERTY("Appearance Profile"), ALL_USE_PROFILE( NAME>= "XXX + YYY" ))
But I don't have a solution for the comparison. 
Thanks for your help
Parents
  • Hi Margaretha, 

    I want to first make sure if I understood your conditions correctly - 

    • Filter all Tasks containing the characters "TTT" in the Name; and 
    • Have the values "XXX" OR "YYY" in the User Field "BB"; and
    • Have a specific Start Date, let's say "1/24/2021"

    Once you have specific Tasks filtered out based on the above conditions, you want to assign the Appearance Profile, "XXX + YYY" to ALL the Assignments within the Task?

  • Hi Arpit, 

    the first and second points are right, the third one not really. I don't want that they have a specific date, I want that they have the same Start Date (in that case they also would have the same End Date, if that matters). Synchro should compare all the dates and if two tasks have the same start date ( and all the other conditions) then it should assign the Appearance Profile. And yes I want to assign the Appearance Profile to all the Assignments within the tasks. 

    I hope, I could clarify it a bit. 

    Thanks for your help!

Reply
  • Hi Arpit, 

    the first and second points are right, the third one not really. I don't want that they have a specific date, I want that they have the same Start Date (in that case they also would have the same End Date, if that matters). Synchro should compare all the dates and if two tasks have the same start date ( and all the other conditions) then it should assign the Appearance Profile. And yes I want to assign the Appearance Profile to all the Assignments within the tasks. 

    I hope, I could clarify it a bit. 

    Thanks for your help!

Children
No Data