-
ChatterFeed
-
1Best Answers
-
0Likes Received
-
0Likes Given
-
12Questions
-
11Replies
How to monitor API requests by user / connected app?
-
- Bergin
- September 24, 2019
- Like
- 0
- Continue reading or reply
How to verify certificate in an inbound API call when using Mutual TLS
ie, to verifiy the cert coming has a specific common name that we have authorized.
Is there a way to do this verification in Salesforce?
-
- Bergin
- June 27, 2019
- Like
- 0
- Continue reading or reply
Mutual TLS verification for CN
I don't want to let any client SSL cert to be allowed to access the API.
-
- Bergin
- May 27, 2019
- Like
- 0
- Continue reading or reply
passing client_id, client_secret as header for /oauth2/token call?
-
- Bergin
- April 12, 2018
- Like
- 0
- Continue reading or reply
Writing unit test for trigger on LogoutEventStream
My question is about, how to write tests for this? How do we call the insert record on LogoutEventStream?
Here's the link to the actual trigger https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_logouteventstream.htm
-
- Bergin
- February 25, 2018
- Like
- 0
- Continue reading or reply
How to get the session token from Single Sign on provider?
Any guidance would be helpful. Thank you!
-
- Bergin
- December 06, 2017
- Like
- 0
- Continue reading or reply
SSL Certificate in Sandboxes
- Is it possible to create a single CA signed certificate and use it across my 3 sandboxes?
- Should I create an individual certificate for each of the sandboxes?
- My domain for dev sandbox would be mycompany--dev.cs7.my.salesforce.com as of now when I get the certificate signed. What will happen if Salesforce switches my sandboxes from one instance to another later on (example CS7 to CS20)?
Thank you.
-
- Bergin
- August 15, 2017
- Like
- 0
- Continue reading or reply
Data from Apex callout doesnt work in VF Page with Standard Controller
The page works fine if I access the page independently, it shows the below error if I embed the visualforce page in the Account Page Layout.
Content cannot be displayed: Web service callout failed: Unexpected element. Parser was expecting element 'http://schemas.xmlsoap.org/soap/envelope/:Envelope' but found 'http://www.w3.org/1999/xhtml:html'
Anybody else faced this issue? What could be the fix?
-
- Bergin
- April 23, 2014
- Like
- 0
- Continue reading or reply
Pass class properties to a page
What is the best way to get the data from selected row and pass on to the new page?
I have about 12 fields like name, address, dob etc. Phone & email will be manual entry in the visual force page.
Any code samples will be highly appreciated and helpful.
Thanks for your help in advance.
-
- Bergin
- March 20, 2014
- Like
- 0
- Continue reading or reply
Binding account to contact
I'm trying to add contact to a Business account.
public void AddContact(Account account, string firstName, string lastName)
{
Contact NewContact = new Contact();
NewContact.FirstName = firstName;
NewContact.LastName = lastName;
NewContact.Account = account;
System.debug('Before Insert Biz Contact123 : ' + firstName + ' - ' + lastName + ' - ' + account);
//Insert new contact
insert NewContact;
System.debug('After Insert Biz Contact123 : ' + NewContact.FirstName + ' - ' + NewContact.LastName + ' - ' + NewContact.Account.Id);
}
This is what I see in the log, but the account is not bound to the contact.
|USER_DEBUG|[143]|DEBUG|Before Insert Biz Contact123 : James - San - Account:{Name=Jaas, RecordTypeId=012Z0000000D69aIAC, Id=001Z000000k7IA7IAM}
|USER_DEBUG|[150]|DEBUG|After Insert Biz Contact123 : James - San - 001Z000000k7IA7IAM
-
- Bergin
- March 17, 2014
- Like
- 0
- Continue reading or reply
Is there a tool to get metrics on Page load time / response time?
Is there a tool / app / plugin available ?
I'm using service cloud console, so not able to find the acual load time any browser plugins when I navigate within the console.
-
- Bergin
- February 12, 2014
- Like
- 0
- Continue reading or reply
How to invoke custom page for new relatedlist
I have custom objects A and B. The relationship between A & B is set using a custom object C, with object A & B (master detail) as fields of C.
I have created a custom lookup page to bind object B (to A) which is set as related list to Object A.
I want to invoke the custom page when I click on New button in the related list. How can I achieve this?
Thanks,
-
- Bergin
- August 09, 2013
- Like
- 0
- Continue reading or reply
How to get the session token from Single Sign on provider?
Any guidance would be helpful. Thank you!
- Bergin
- December 06, 2017
- Like
- 0
- Continue reading or reply
Auth.AuthToken.getAccessToken Returning Null
I was trying to avoid building and parsing HTTP Requests/Responses in order to get through the Authorization Flow but my attempts have failed.
First, I configured an API Project via the Google API Console
Second, I created an AuthProvider in Salesforce.
At this point, I would expect the following code sample to grab an Access Token for me:
system.debug(Auth.AuthToken.getAccessToken('0SO4B000000CacK', 'Open ID Connect'));However, I receive a null value.
For good measure, duplicated everything for a Google Auth Provider, instead of Open Id Connect with the same result. I also set up an external data source (which does authenticate and sync) to make sure I had a token.
Has anyone been able to successfully use AuthToken methods when connecting to Google APIs?
Is there anything that I missed along the way?
- TJMeadows
- April 06, 2017
- Like
- 0
- Continue reading or reply
Set Up Single Sign-On for Your Internal Users Challenge - Could not find SAML Enabled in your org's setup audit trail
Challenge Not yet complete... here's what's wrong: Could not find SAML Enabled in your org's setup audit trail. Make sure that you have 'SAML Enabled' checked under 'Federated Single Sign-On Using SAML' in your org's 'Single Sign-On Settings'.
I've reviewed the settings, and "SAML Enabled" is true, and I'm connected to the right org when doing the challenge. Has anyone else encountered this?
- AndrewTaylor
- January 19, 2017
- Like
- 3
- Continue reading or reply
Setting up Lightning Connect - Pb with API Trailhead Error
I'm working on the "Setting up Lightning Connect - Pb with API Trailhead Module and after submitting the Check Challenge I've received this error below:
"Challenge Not yet complete... here's what's wrong:
There was an unexpected error in your org which is preventing this assessment check from completing: System.ExternalObjectException: data.api.DataSourceException: This data is no longer available. The "Phone" table in the external data source is currently unavailable. Try again later or contact your administrator for help."
Has anyone come across this error, or have any ideas on what the issue is or on how to proceed to complete the challenge. Thanks.
- Andrew Eversley
- February 01, 2016
- Like
- 0
- Continue reading or reply
test class
- sieb4me
- April 23, 2014
- Like
- 0
- Continue reading or reply
Binding account to contact
I'm trying to add contact to a Business account.
public void AddContact(Account account, string firstName, string lastName)
{
Contact NewContact = new Contact();
NewContact.FirstName = firstName;
NewContact.LastName = lastName;
NewContact.Account = account;
System.debug('Before Insert Biz Contact123 : ' + firstName + ' - ' + lastName + ' - ' + account);
//Insert new contact
insert NewContact;
System.debug('After Insert Biz Contact123 : ' + NewContact.FirstName + ' - ' + NewContact.LastName + ' - ' + NewContact.Account.Id);
}
This is what I see in the log, but the account is not bound to the contact.
|USER_DEBUG|[143]|DEBUG|Before Insert Biz Contact123 : James - San - Account:{Name=Jaas, RecordTypeId=012Z0000000D69aIAC, Id=001Z000000k7IA7IAM}
|USER_DEBUG|[150]|DEBUG|After Insert Biz Contact123 : James - San - 001Z000000k7IA7IAM
- Bergin
- March 17, 2014
- Like
- 0
- Continue reading or reply
need help with Component.Apex.outputLink
Looks like I am missing the name attribute for outputLinks, but there is no such thing as name fot the tag.
Like you see in the code I tried "link.expressions.Value" too.
public Component.Apex.OutputPanel getLinks(){ Component.Apex.OutputPanel pnl = new Component.Apex.OutputPanel(); for(string id : recentItems) { Component.Apex.outputLink link = new Component.Apex.outputLink(value='/'+id, title=id); //link.expressions.Value = '/{!id}'; This does not work either pnl.childComponents.add(link); } return pnl; }
I see the links if I do inspect element, but they are not displayed on the page.
<span id="j_id0:j_id1:j_id6_0"> <a href="https://na9.salesforce.com/001E000000iWHSLIA4" title="001E000000iWHSLIA4"></a> <a href="https://na9.salesforce.com/001E000000iWHSMIA4" title="001E000000iWHSMIA4"></a> </span>
What am i missing here?
Thanks in advnace.
- Mitesh Sura
- September 13, 2013
- Like
- 0
- Continue reading or reply
How to invoke custom page for new relatedlist
I have custom objects A and B. The relationship between A & B is set using a custom object C, with object A & B (master detail) as fields of C.
I have created a custom lookup page to bind object B (to A) which is set as related list to Object A.
I want to invoke the custom page when I click on New button in the related list. How can I achieve this?
Thanks,
- Bergin
- August 09, 2013
- Like
- 0
- Continue reading or reply
Lookup button in Visualforce Page
Hi,
I would like to ask if any expert know how to develop the Lookup button in the Visualforce Page. Thanks!
Best regards
- boihue
- February 26, 2009
- Like
- 0
- Continue reading or reply
Reporting error message for Standard user
When any user other than an administrator attempts to run a custom report the following error message appears.
"Report Obsolete
This report can no longer be edited or run. Your administrator has disabled all reports for the custom object, or its relationships have changed."
While logged in as the system adminstrator i am able to run the report, but when i log in as a Standard user and try to run the same custom report i get the message above.
Is there anyway to allow the Standard user permission to run custom reports?
- rrae
- August 02, 2005
- Like
- 0
- Continue reading or reply