• Prakash GB
  • NEWBIE
  • 5 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 11
    Questions
  • 15
    Replies
How can I upload a larger file from a lightning custom component? I don't have record ID at the time of file selection
Hi,

is it possible to have custom toast message on list view page? my requirement is, i have inlcuded list buttons on list view. after completeing action need to show alert message to user.

Thanks in advance
Prakash GB
Hi,

i have requirement to upload a file clicking on a link on lightning component. is it possible to fire lightning:fileupload from controller.js?

Thanks
Prakash GB
Hi,

Can anyone help me, How to manage sessions when SF & other applications are connected?

Assume i make a callout to External application and authenticate and recieve session id. next when i am making a post request, how can i use the session id to bypass authentication again? what is the best way to store session id in salesforce?

Thanks
Prakash GB
 
Hi,

I'm trying to validate a class but I'm stuck in this error:

System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out 
Stack Trace: Class.TeacherApplyNewController.adBloomRequest: line 153, column 1


This is the block of code causing the error:
@future(callout=true)
    public static void adBloomRequest(String contactId, String transactionId) {
        if( !String.isBlank(transactionId) && !String.isBlank(contactId) ) { 
            Http h = new Http();
            HttpRequest req = new HttpRequest();
            req.setEndpoint('https://trk.adbloom.co/SPMj?transaction_id=' + transactionId + '&adv_sub=' + contactId );
            req.setMethod('GET');
            HttpResponse res = h.send(req);
        }
    }

I'm not familiar with writing classes, so in this scenario how could I modify the code to make sure it doesn't produce the aforementioned error?

Thanks in advance.
Stefano
Hi,
I am planing to take pd2 certification. I came to know that pd1 is mandatory for pd2. 

I want to know that how to take pd1 certification also do we need to complete any other certification for pd1?
i need to send more than 10 emails by apex code from my developer- org. does email relay helps? or any other way to achieve this?
Hello,

I'm getting the following error after I use Username-Password OAuth Authentication Flow, and it returns a token successfully. This error appears intermittently. Can anyone assist me? I'd grealty appreciate it.

[{"message":"Session expired or invalid","errorCode":"INVALID_SESSION_ID"}]

​Thanks
hi,
how can i rerender a lightning componet after closing a ui:message in it.
 
Is there any way we can find out how many agents of a skill are online through apex code? We can see the number of agents online through supervisor console, but I need to get it on run time throgh code. The requirement is to disable the button when the chat queue reaches 150% of available online agents. 
I need to have lists refresh when a new record is added. I would think that the Choose How Lists Refresh option and Push Notifications handle this, but that does not seem to work. Please help!