Please clarify the below query, it is a bit urgent:
Let us say I have two objects X, Y and both are related(we are allowed to use Lookup/Master-detail relationship). I have created an Approval Process on X. Is it possible to display some fields of Y also in the Approval Request Page Layout in any possible way?
When you try to Edit the approval process page layout for Object X - it only shows fields that are present in that object X and not the fields which are available on Object Y even if X and Y have a relationship .
However, you can easily overcome this by creating a formula field on X and bring the value of the field from Object Y to X.
Thanks for your reply. I am not clear on your answer. I only want to display other object's(say object Y) fields on the approval process page layout of object X and both X and Y are related objects. So, is this possible to display Y's fields on X's approval process page layout? If not possible, please let me know how to achieve it through coding?
When you try to Edit the approval process page layout for Object X - it only shows fields that are present in that object X and not the fields which are available on Object Y even if X and Y have a relationship .
However, you can easily overcome this by creating a formula field on X and bring the value of the field from Object Y to X.
Thanks Sonam for your response and it solved the problem. Sorry for delayed response. Can you please clarify the following query as well: Say we have created an Approval process on object X. How to display an editable field(of Object X) in Approval Page Layout? I tried to include fields in Approval Page layout but they are getting displayed as readonly fields.
Aaah now I get the requirement.
Yes, what you are trying to achieve is possible.
When you try to Edit the approval process page layout for Object X - it only shows fields that are present in that object X and not the fields which are available on Object Y even if X and Y have a relationship .
However, you can easily overcome this by creating a formula field on X and bring the value of the field from Object Y to X.
Following docs will give you more insight:
https://help.salesforce.com/HTViewHelpDoc?id=fields_creating_cross_object_advanced.htm&language=en_US
http://www.quora.com/Salesforce-com/How-do-i-get-the-parent-object-records-in-to-child-object-fields-in-salesforce-with-list-button
Hope this answers your question!
All Answers
Though it is possible to include fields from other objects if there is a relationship between two objects - In your specific case :
As per standard functionality, the Approval process page layout is not accessible for update through Setup.
You will have to achieve this through code.
Hi Raju,
Thanks for your reply. I am not clear on your answer. I only want to display other object's(say object Y) fields on the approval process page layout of object X and both X and Y are related objects. So, is this possible to display Y's fields on X's approval process page layout? If not possible, please let me know how to achieve it through coding?
Thanks in advance.
Aaah now I get the requirement.
Yes, what you are trying to achieve is possible.
When you try to Edit the approval process page layout for Object X - it only shows fields that are present in that object X and not the fields which are available on Object Y even if X and Y have a relationship .
However, you can easily overcome this by creating a formula field on X and bring the value of the field from Object Y to X.
Following docs will give you more insight:
https://help.salesforce.com/HTViewHelpDoc?id=fields_creating_cross_object_advanced.htm&language=en_US
http://www.quora.com/Salesforce-com/How-do-i-get-the-parent-object-records-in-to-child-object-fields-in-salesforce-with-list-button
Hope this answers your question!
Can you please clarify the following query as well: Say we have created an Approval process on object X. How to display an editable field(of Object X) in Approval Page Layout? I tried to include fields in Approval Page layout but they are getting displayed as readonly fields.
Thanks.