Retrieving the owning business unit via java script
-
13. februar 2009 14:56Hello,
I want to deactivate some attributes on my contact form. To decide which attributes I need the owning business units ID (not the name). Is there a simple way without fetch xml?
I also need the business ID of the current user.
regards
christian
Alle besvarelser
-
13. februar 2009 16:06I don't see owning business unit as one of the crmForm attributes. You're going to have to fetch for it.
-
13. februar 2009 16:41
You will have to use fetch xml in order to stay supported. If you are willing to make an unsupported change, change the owningbusinessunit displaymask column (Attribute table) with a direct SQL update to make it visible for select in the form editor.
update attribute set displaymask = 469762048 where attributeid = '80E6486E-17F9-4623-B179-6F86778663CE'
attributeid above is owningbusinessunit for account in my case.
Ronald- Markeret som svar af DavidJennawayMVP, Moderator 22. maj 2009 16:55
-
15. februar 2009 11:22
For the current user's BU ID you should use the inbuilt who am I service.- Markeret som svar af DavidJennawayMVP, Moderator 22. maj 2009 16:55