-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
1Likes Given
-
4Questions
-
0Replies
How to redirect to two different pages based on overriding Edit button in Account Detail page
I have two Person Account Edit pages(A and B, which are visual force pages) after saving page A,
I get redirected to Person Account Detail page.
when clicking on the Edit option in Person Account Detail page,
I am redirected to Person Account Edit screen of Page B.
Currently I get redirected only to Page B.
How can i get an option to redirect to both the Person Account Edit pages(A and B)?
Any help will be greatly appreciated.
-
- Ancil PA
- March 26, 2018
- Like
- 0
- Continue reading or reply
show/hide fields based on a pick list selection in the new case screen without using visualforce page and apex class
I want to show/hide fields based on a pick list selection in the new case screen . If i select 'PIN Reset' from 'Action' pick list then it should show 'PIN' field and it must hide 'Password' field, Or if i select 'Password request' then it should show 'Password' field it must hide 'PIN' field.
Is there any way to achive this without using Visualforce page and Apex class ?
Please find the below screenshot.
-
- Ancil PA
- February 15, 2018
- Like
- 0
- Continue reading or reply
Auto populate the value of CustomerName field in case screen
I am trying to auto populate the value of CustomerName field in case screen as "Anonymous" based on recordtype selection. Can somebody help me on this?
I tried using workflow but i am not getting the CustomerName field in case object and i could find that the CustomerName field is related to account object, due to which i am unable to use workflow to auto populate the value of CustomerName field in case screen.
I tried using workflow but i am not getting the CustomerName field in case object and i could find that the CustomerName field is related to account object, due to which i am unable to use workflow to auto populate the value of CustomerName field in case screen.
-
- Ancil PA
- February 09, 2018
- Like
- 0
- Continue reading or reply
Is there any way to hide standard fields for a particular page layout.
Is there any way to hide standard fields for a particular page layout. We have 8 record types and their corresponding page layouts in Case object, i need to remove some of standard fields from only one page layout(that is ralated to one of the RecordType).
-
- Ancil PA
- February 07, 2018
- Like
- 0
- Continue reading or reply
Exception when API callout is made to update this response to salesforce.
I am using a trigger to save 'Points' to an external database thorugh API callout. The result got from this API response should be updated to the salesforce databse though a DML operationThis callout and following DML operation is a part of CASE closing.
In the trigger i have a function as following:
Here processPoints is a function in a controller class elseware. Below is the processPoints function used :
This always gives an error "You have uncommitted work pending. Please commit or rollback before calling out".
Im a newbie in triggers an callouts. Please guide me.
In the trigger i have a function as following:
public void processAfterUpdate() { awardPoints( id, true) } @future(callout=true) public static void awardPoints(Id caseId,Boolean isMYCard) { ---------- ---------- POperations pOps = new POperations(); if(isMYCard) res = pOps.processPoints(reqBody,true); else res = pOps.processPoints(reqBody,false); if(res != null) { -------- -------- Database.SaveResult sr = Database.update(c); } }
Here processPoints is a function in a controller class elseware. Below is the processPoints function used :
public HttpResponse processPoints(String reqBody,Boolean isMyCard) { Http h = new Http(); HttpRequest req = new HttpRequest(); HttpResponse res; if(isMyCard) req.setEndpoint(BASE_URL+'/api/xxxx/xxxxx'); else req.setEndpoint(BASE_URL+'/api/yyyy/yyyyy'); req.setMethod('POST'); req.setHeader('Content-Type','application/json;charset=UTF-8'); req.setHeader('Accept', 'application/json'); req.setBody(reqBody); req.setTimeout(TIMEOUT_MILLISECS); req.setClientCertificateName(CLIENT_CERTIFICATE); try { res = h.send(req); } catch(Exception e) { System.debug('Exception====='+e); } return res; }
This always gives an error "You have uncommitted work pending. Please commit or rollback before calling out".
Im a newbie in triggers an callouts. Please guide me.
- Saugandh K
- May 11, 2018
- Like
- 1
- Continue reading or reply