• Ancil PA
  • 10 Points
  • Member since 2017

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 4
  • 0

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.

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.

User-added image
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.
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).
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:
public void processAfterUpdate()
     awardPoints( id, true)

public static void awardPoints(Id caseId,Boolean isMYCard)
        POperations pOps = new POperations();
                 res = pOps.processPoints(reqBody,true);
                 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;

	    req.setHeader('Accept', 'application/json');
               res = h.send(req);
           catch(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.