• DeepakKapoor81
  • NEWBIE
  • 5 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 11
    Replies

Hi,

 

I have requirement where in onclick of command button a Pop-up VF is required to open where in user will Find the new user using the Custom application which i have already developed in Apex and VF.

 

Now the User which comes as a result of search on new VF page, User will select the checkboxes in front of them and click save.

 

On click of Save, the new window should get closed and the selected on the selected user should get added onto the previous page from where i opened the VF page of searching the user.

 

Any help will be greaatly appreciated.

 

Thanks

On this saturday (04/05/2019) the Summer 19' has arrived.
For us arrived with issues...

After the new release enters, in all our Components, related with "User" we receive this error:
Failed to save TestUserError_Deletar.cmp: Invalid definition for null:TestUserErrorController: Field__c, ManagerId FROM User WHERE Id =:UserInfo.getUserId() ^ ERROR at Row:1:Column:74 No such column 'ManagerId' on entity 'User'. 

We try security configuration, try without sharing class.
Only works when we use only custom fields in the query.

Any one face this error?

Thanks !

Hello,

 

I am trying to plan out an integration with a third-party system and I need a sample XML for when a new record is created/updated in Salesforce (e.g. a new Account is created or a Contact record is updated). I know where to find the general XML schema but will need more than than just this. Is there a way to get a sample XML that I require?

 

Thanks for your help in advance.

Hi all,

 

Is there any way to show inline visualforce page in edit mode as well?

Like if I have an object "Recipe", now for recipe preperation steps,   I am using inline vf page. Once the steps are enterd, now if that recipe is in edit mode, then inline vf page is not showing.

 

Thanks in advance!

EDIT: I have updated this posting with a subject that is more indicative of what I am trying to achieve.

 

End Goal

Automatically escalate a custom object record if it has not been approved after 24 hours (approval process escalation).  When this record is created, it is automatically submitted into an approval process.  If the original approvers have not approved/rejected the record after 24 hours, the record should be automatically reassigned to a different approver where it will sit for however long it takes for approval/rejection.

 

Note: Status field has the following values: New, Pending Approval, Approved, Rejected

 

Current Implementation

  1. Record created in custom Visualforce GUI
  2. Upon save, Apex extension submits the record to an approval process
  3. First step of the approval process updates a Status field on the record, changing it from "New" to "Pending Approval"
  4. 24-hour time-based workflow in place which updates a checkbox, "Escalated", if the record is still in the "Pending Approval" Status (Currently, does not fire)
  5. Apex trigger fires after record is updated calls Apex class method if "Escalated" checkbox is true.  This Apex method should have the ability to:
    1. Cancel current approval process and resubmit to escalation approval process - OR-
    2. Manipulate the record's current state in the existing approval process so that a different User/Group is responsible for approval/rejection
    3. (I think the first method is possible with Apex, but I'm not too sure about the second method)


I believe the problem lies in the order of execution between steps 3 and 4.  For whatever reason, the workflow in step 4 never fires after the record is updated via approval process.  However, it will fire when I manually change a "New" record's Status to "Pending Approval".

 

I was hoping that there was a better way to go about this auto-escalation (perhaps within the point-and-click configuration) but haven't found a solution.  Is there a better approach (ideally, a working approach :smileyhappy:) out there?

 

Thanks in advance!

Message Edited by jpizzala on 02-25-2009 11:05 AM
Hi,
 
I have an urgent issue. The goal is to update the current user's profile via Apex. Since I can't do this as myself, I make an HTTP callout and log into the Web service API as another user. In principle this should work, and my code is below.
 
The problem is that the sid session cookie is not recognized when I call the myApexPage page and I get a redirect back to the login Url. Are there issues around passing cookie headers using Apex? Is sid not the right cookie name? I've tried setting the cookie domain and path properties but this doesn't help.
 
Any help is very much appreciated.
 
 
Http h = new Http();
HttpRequest req = new HttpRequest();
req.setMethod('GET');
req.setEndpoint('https://na5.salesforce.com/?un=username&pw=123456&loginType=');
HttpResponse res = h.send(req); 
string loc = res.getHeader('Location');
if (loc.indexOf('sid=') > -1)
{
            string sid = loc.substring(loc.indexOf('sid=')+4, loc.indexOf('je=')-1);
            req = new HttpRequest();
            req.setMethod('GET');
            req.setEndpoint('https://na5.salesforce.com/apex/myApexPage');
            req.setHeader('Cookie','sid='+sid);
            req.setHeader('Cookie','session_id='+sid);
            res = h.send(req);
           
            system.debug('Response: '+res.getBody());
}
hi all,
 
i got an error message saying : request failed with http status 407: proxy authentication required(ISA server requires authorization to fulfill the request. access to the web proxy filter is denied )
whenever i try to run apex explorer.
 
what changes should i make into tools-> options to make it run properly?
 
thanks,
mahi
  • November 14, 2007
  • Like
  • 0