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

Account Definition recalculation

Hello,

 

Maybe a stupid question: Is it possible -somehow- that when something (it data of the primary department) that relates to an account definition changes, that the account definition assignment to a person will be recalculated which results for example in the relocation of an account from one container to another?

 

Thanks a lot!

 

Henrik de Jong

  • It would be normal behaviour. If You have not changed template on the UID_ADSContainer@ADSAccount.

    You can see the description of function TSB_ITDataFromOrg:

    'searches for a column of an account table (targetDialogColumn) the mapping in TSBITDataMapping for the specific account definition (UID_TSBAccountDef)
    'if no mapping is defined, an empty result is returned
    'if column is mapped and the option UseAlwaysDefaultValue is set, the TSBITDataMapping.ObjectKeyDefaultValue is returned
    'otherwise the value for the column retrieved from TSBITData
    'means: for an BaseTree reference in the person (UID_Person) (the kind of BaseTree is determined by TSBITDataMapping.ITDataFrom - Department, Locality, ProfitCenter, Org)
    'a value will be recursiv searched through the ITData
    'if no value can be retrieved, the TSBITDataMapping.ObjectKeyDefaultValue is returned
    'if for a mapped column no value can be retrieved, an exception is thrown
  • Thanks for your answer,

    So, yes, I know, but out of the box, as far as I know, when you change the IT Operating data on a department, for example the adscontainer, this will not trigger a recalc of the uid_adscontainer template. I think I have to find a decent way to force recalc of template for relevant adsaccounts.

    Btw, I am working with v8
  • You can copy existing process VID_ExecuteTemplates from DialogTable and modify Columns and WhereClause attributes in the execution step accordingly to Your needs. After that just assign it to desired event on desired table but pay attention to trigger this event only once per table (NOT for every record in a table!!!) .
    If You need this process to run just after synchronization, set it to trigger on "PostSync" event on the table that is referenced as object in the synchronization project.
  • You should be able to recalculate the templates for all accounts assigned to an account definition in the Manager. The should be a task "Recalculate templates" at the account definition.