You need to sign in to do that
Don't have an account?
SeawardT
Search multiple Asset Fields, then display on Field on Case layout
Our organization requires active support which is listed by asset. There are typically multiple assets associated with an Account, however I want to search through all the Assets in an Account and if the term Active is found in the Status field, then show "Active", otherwise if it is not found display "Expired".
I've tried creating a case field using a forumla to try an IF statement, however I cannot access the related Asset fields.
Obviously, this would seem I need to create a S-Control in order to have this happen when an Account is associated with a case. Seems simple, but I can't get my page to load this.
I've tried creating a case field using a forumla to try an IF statement, however I cannot access the related Asset fields.
Obviously, this would seem I need to create a S-Control in order to have this happen when an Account is associated with a case. Seems simple, but I can't get my page to load this.
So, do you want to check all the related items under the Account if any of the records contain Status = Active, then update the Account Status fields as Active else Expired, Correct ?
If it is so, Then u need to write a S-Control something like this.
Code:
Let me know, if it works or any errors come in, we will rectify them together..:smileywink:
Angel..
My follow up question, then is now once this data is obtained, how is it is moved to a case? Should this field be populated into an Account field, then somehow it needs to be moved to a case along with the Account Name?
Finally, just a quick one, should this S-Control be HTML or Snippet?
Also, thanks so much so far! This is a great help to understanding the logic.
Message Edited by SeawardT on 10-15-2007 08:53 AM
Maybe:
Account.Status = UpdateResult
Message Edited by SeawardT on 10-15-2007 11:48 AM
Query Status field in all Assets which are associated with an account for "Active"
If "Active" is found in 1 or more Assets, then "Active" would show up in a field under the Account Page Layout
If no "Active" is found in any Asset under the Account, then show "Expired" would show in the field under the Account
Then when a case is opened and an Account is associated with the case, that field would populate with either "Active" or "Expired" based on the field in the Account the say way a Phone number or email would show up for the contact.
So..
From the example, this looks great, but is only half way. This seems to be a good way to query the Assets, however, I am unclear as how to access the result in a tangeable way. I added this S-Control (html) to the Account layout, but how to get that result to display is something I am still working on. I tried using the above mentioned method to output to a variable, but was of course unsuccessful.
Lastly, I am still hesitent on what method to use to being the process. Assign it to a button or link? I would like this to happen without any interaction except loading the Account page.
Thoughts?