• ALL STAR
  • 13905 Points
  • Member since 

  • Chatter
    Feed
  • 446
    Best Answers
  • 0
    Likes Received
  • 9
    Likes Given
  • 0
    Questions
  • 3354
    Replies
I am trying to finish the challenge for the Monitor and Manage Salesforce App Usage trail. I have succesfully logged on to Salesforce for Andriod. But the app now doesn't appear in the Connected Apps OAuth Usage list. So I can't block this. There is now way I can pass the challenge now. Please assist.
Hi Team,
I am using SOAP api with C# environment, trying to update the Owner in  "Work_Assignment__c". but am getting the issue "The external foreign key reference does not reference a valid entity: Owner". I can able to get Owner Id, Owner Name by using Owner.Id,Owner.Name field.
Please hel me to resolve this issue and below is my code.

sObject attach = new sObject();
 System.Xml.XmlDocument xmlDoc = new System.Xml.XmlDocument();
 attach.type = "Work_Assignment__c";
 attach.Id = "a1O0n000000DLZ4EAO";
attach.Any = new System.Xml.XmlElement[1];
attach.Any[0] = xmlDoc.CreateElement("Owner");
attach.Any[0].InnerXml = "0050n0000017hBGAAY"; // Owner Id
SaveResult[] results;
LimitInfo[] limitInfo;
List<sObject> attchmentlist = new List<sObject>();
attchmentlist.Add(attach);
queryClient.update(header, //sessionheader 
                                  null,   //calloptions1 
                                  null,   //assignmentruleheader 2
                                  null,   //mruheader 3
                                  null,   //allowfieldtruncationheader4 
                                  null,   //disablefeedtrackingheader 5
                                  null,  //streamingenabledheader 6
                                  null,   //allornothingheader 7
                                  null, //DuplicateRule header8
                                  null, //Loacaleoption9
                                  null,   //debuggingheader10 
                                  null,   //packageversionheader11 
                                  null, // emailheader
                                  null,   //emailheader 
                                  attchmentlist.ToArray(), //new attachment or issue or anyother object 
                                 out limitInfo,
                                  out results //result of create operation 
                                  );



 
Hi all,

I want to know if there is a way to query permission set from a particular profile and get the first value from the list of that query.

Thanks in advance.
Hello,

A third party application wants to read data from Salesforce.
So i will expose the salesforce.

They plan to read the data with POST.

How can i give the swagger to them ?
URL and sample JSON

Thank you in advance for suggestions
Test Your Process
Check the Process
If everything works correctly, whenever an account has a change of address, the address change is made for everyone who works for that company. Let’s test that.
Click  to open the App Launcher. Select Contacts.
Click Recently Viewed and select the All Contacts list, then click Tim Barr.
On Tim Barr’s contact record, click Details.
On Tim Barr’s detail page, note the mailing address [1] and account name [2]. 
Click the account name, Grand Hotels & Resorts Ltd. This opens the account for Grand Hotels & Resorts Ltd.
On the Grand Hotels & Resorts Ltd. account record, click Details.
Click Edit.
Change the billing street address and click Save.
Click Related.
Scroll down to Contacts and click Tim Barr. Click Details. On his detail page, notice that his mailing address has been updated.
I have requirement -- 
Find out the duplicate records based on Three different fields.
1. Email, 2. Phone, 3. OwnerId

if 1 and 2 satisfied but the owner is different then it has to allow for Lead creation otherwise add an Error.

How we can achieve this.
Hello,

due to client restrictions, i am unable to install eclipse.
If i want to search words in code orprocess builders, what are cloud based toolsi can use.

Thank you 
hi 
i'm not understand the below error when click the 'check the challenge' of salesforce mobile app customization in unit of customize campact layout.
Help me overcome this error.

--------There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: EONTWHVZ--------


ThankYou
 
this is my code.

public class StringArrayTest {
    public static List <String> generateStringArray (Integer n)
    {
       List<String> List1 = new List<String>();
       
        for(Integer i=0;i<n;i++)
        {
          List1.add('\'Test '+i+'\'' );
            System.debug(List1[i]);
  }
       
        return List1;
    }

}
Hi,
I have created a bucket field for Top Case Drivers by SolarBot Ownership challenge. But my report seems wrong. Please check the screenshots.
User-added image
User-added image
Regards,
Sai.
I have 2 Queues - AsiaQ & EuropeQ. I have a Apex API that converts a Cart Custom Object record into a Lead record. The Lead record has a field callled Region which takes Asia or Europe. Based on the region selected, I want the Lead to be assigned to either AsiaQ or EuropeQ.
 
Below code works: I have hard coded the Q IDs.
ID QID;
Lead indLead = new Lead();

if (indLead.region__c == 'Asia')
      QID = '00G46000000nsXy';
else
    QID = '00G46000000nsY3';

indLead.ownerid = QID;

I dont want to hard code. I want to get the Q ID based on the region in the Lead record.

Below is the code. This is NOT working. Pl. help & suggest what mistake I am doing -

ID QID;
Lead indLead = new Lead();

QID = [select queue.id from QueuesObject where Queue.Name = :indLead.region__c limit 1];
indLead.ownerid = QID;

I have confirmed that :indLead.region__c has the correct value of Asia or Europe.
Hi guys,

i'm working on a project where I use a visualforcepage, a standardcontroller for opportunity and extend it with an apex class.
The apex class gets the AccountId from the current Account via getRecord().
This works perfect in Classic mode, but in Lightning getRecord() returns NULL.

Any ideas?
Thanks in advance
I am using the REST API for creating a new Task record, including an Activity Date in the format YYYY-MM-DDThh:mm:ssZ. My current timezone is UTC+1.

When submitting a date in the first hour of the day, i.e. for example from 2018-11-19T00:00:00+01:00 to 2018-11-19T00:59:59+01:00, the Activity date is rendered as the previous day on the Task's detail page in my lightning expirience, here 11/18/2018 (Locale: English (United States)). Only when pushing a later date like 2018-11-19T01:00:00+01:00, the Activity Date is correct and shows 11/19/2018.

I then created a custom Date/Time field for the Task and pushed the same dates as above. In that case, every date is rendered correctly, i.e. when pushing 2018-11-19T00:00:00+01:00, it is rendered correctly as 11/19/2018 12:00 AM.

In conclusion, it seems that the Activity Date, which has the field type "Date", is ignoring the timezone, while my custom field, which has the field type "Date/Time", is considering the timezone properly. 
This behavior applies not only for Tasks, but for every object that has fields of type Date or Date/Time.

Is there something that I missed or is it a bug?
Hello,

I am creating a Email service in salesforce.

I will receive emails from any out sideaccount, i plan to store them in opprtunity and attachment.

Can someone guide me
1) any tutorial for the same ?
2) how does it zork for different environment ? if someonesends email, how can i decide in which env it should be go to ?

Thank you for advise
I have struck in the Security Specialist Super badge's first Challenge. Here is the Challenge Statement 
Sales Executive User Requirements
Sales Executive users should be able to view all opportunities and accounts (regardless of other sharing settings), but not be able to create, edit, or delete any opportunities or accounts. They should be able to create reports and dashboards, but not create or manage report and dashboard folders. Sales Executive users should be able to create their own list views, but not create or manage list views for others. They should have mobile access, granted by the admin on demand, and are not restricted in terms of their hours of access to Salesforce.
i have configured rest of process correctly , i am not being able to get this bold statement, Regardless of Sharing setting, 
Please help me in it,
Here is the Problem 
User-added image
Hi all, 

I was just implementing Quip from a test in Trailhead directly into our production org. 
With installing the Quip connect from the app exchange and placing the "Quip Documents" component in our page lay-out. The component gives me the following error:
"Your Quip-account on currently linked with another Salesforce org. Do you want to link this org with your Quip-account *button*".

Hitting the link button will make the component invisible. After reloading the page the component will show back up with the same error. 

Did anyone had the same issue? Or already solved this one? 

Thanks in advance!
<apex:page standardController="Loan" >
    <apex:sectionHeader title="Loan" subtitle="Loan details"/>
    <apex:form>
    <apex:pageBlock title="Loan Edit">
       <apex:pageBlockButtons location="top">
           <apex:commandButton value="Save"/>
           <apex:commandButton value="cancel"/>
           <apex:commandButton value="save&New"/>
        </apex:pageBlockButtons>
        <apex:pageBlockSection>
        <apex:inputField value="{!Loan__c.Loan_Type__c}" />
            <apex:inputField value="{!Loan__c.payment__c}"/>
            <apex:inputField value="{!Loan__c.Payment_date__c}"/>    
        </apex:pageBlockSection>
    </apex:pageBlock>
    </apex:form>
</apex:page>

When i run this program its showing error
errorMessage-Loan does not exisit
Hello,

When we change the role of a person from system admin to other,
I assume that he will defintely see less data, but what all considerations to take ?

Thanks for tips
I am trying to finish the challenge for the Monitor and Manage Salesforce App Usage trail. I have succesfully logged on to Salesforce for Andriod. But the app now doesn't appear in the Connected Apps OAuth Usage list. So I can't block this. There is now way I can pass the challenge now. Please assist.
Hello,

I have a adress on the custom object.
I want to show a link to user, this link will contain the adress of the record.
once the link is clicked it will directly point to the adrsseon google map

how can we implement it ?
 
Hello,

I am new here. I am looking for modifying metadata of SAML Login Information from apex code. Is it possible? 

Also, I have the following question
1. In which table it stores the SAML details of communities & Organization including its endpoints?
2. How can I get IDP id & SP id? Because this information is used for downloading SAML metadata of any Connected Application.

Thanks.

Below is the Example provided to make the Authorization with the External system. But I am not sure how to make use of it in Authorization .
 
Passing your API key in an authorization header

The following example authenticates you with the page API. Along with the Page ID listed on the API page, we can fetch your page profile.
curl -H "Authorization: OAuth 89a229ce1a8dbcf9ff30430fbe35eb4c0426574bca932061892cefd2138aa4b1" \ https://api.statuspage.io/v1/pages/gytm4qzbx9t6.json

Passing your API key in a query param
curl "https://api.statuspage.io/v1/pages/gytm4qzbx9t6.json?api_key=89a229ce1a8dbcf9ff30430fbe35eb4c0426574bca932061892cefd2138aa4b1"

Security scheme type: API Key
header parameter name: Authorization
....................................................................................................................................................................................................................................
I am getting an Error :
Illegal string literal: Invalid string literal '\https://api.statuspage.io/v1/pages/gytm4qzbx9t6.json'. Illegal character sequence \h' in string literal.

Below is My code :
public list <contact> conlist= new list<contact>();
    
    public string PageID ='0ypqjmkwgqmh'; 
    
    Public statusPageCallout(list<contact>conlist){
        
        this.conlist = conlist;
        
        
    }
    
    public void execute(QueueableContext context)
    {
list<user> userlist = [SELECT id,name, User_Status_API_Key__c FROM User WHERE ID=:Userinfo.getUserId() limit 1];
        
        string API = userlist[0].User_Status_API_Key__c;
        system.debug('API------'+API);
        
        HttpRequest req = new HttpRequest();
        req.setEndpoint('https://api.statuspage.io/v1/pages/'+PageID);
        req.setMethod('POST');
        req.SetHeader('Authorization','curl -H "Authorization: OAuth'+API+'\https://api.statuspage.io/v1/pages/gytm4qzbx9t6.json');
        Http http = new Http();
        HTTPResponse res;
        try {
            res = http.send(req);
            System.debug(res.getBody());                
        } catch (Exception e) {
            System.debug('Callout Error:' + e.getMessage());
            
        }
        
}
Hi All, 
        i have a batch class in which i am migrating the users(Contact in salesforce) from Zendesk. so i created a batch and make an Api call to Zendesk to fetch All the contacts of Zendesk.
but when i run the batch the Apex job is showing Argument can not be null. what is the issue?
is it related to Contact's Account. i have some contact in Zendesk that dont have any parent Account.i am trying to debug but the debug log is blank.
Any suggestions how to solve the issue?
My Batch class is given below:-
public class BatchZendeskToSalesforceCon implements Database.Batchable<sObject>,Database.AllowsCallouts, Database.Stateful{
    public Database.querylocator start(Database.BatchableContext BC){
        string query;
        query = 'SELECT Id, Name,Email, Zd_url__c, External_Id__c, Custom_Role_id__c, Zd_ticket_restriction__c,'+
            'Zd_Organisation_id__c, Zd_report_csv__c, Zd_Suspended__c, locale__c, Zd_Tags__c,'+
            'Zd_two_factor_auth_enabled__c, Zd_verified__c, Active__c, Role_Type__c, Alias__c,'+
            'Moderator__c, Only_private_Comments__c, Zendesk_Id__c, Zd_default_group_id__c,'+
            'Zd_Restricted_Agent__c, phone, Zd_Shared__c, Notes__c, locale_id__c, Zd_time_zone__c,'+
            'Zd_Shared_phone_number__c, Zd_Shared_agent__c, Chat_only__c, Zd_Signature__c ' +
            'FROM Contact ';
        //System.assert( FALSE, query );
        return Database.getQueryLocator(query);
    }
    public void execute( Database.BatchableContext BC, List<Contact> Contacts){
        
        Set<Id> contactIds = new Set<Id>();
        for( Contact con : Contacts ){
            contactIds.add( con.Id );   
        }
        //System.assert(false, contactIds);
        getContacts();
    }
    
    public static void getContacts(){
        //ZendeskApis.ZendeskContactApi();
        HttpRequest req = new HttpRequest();
        req.setMethod( 'GET' );
        String username = 'kevin@sfdcconsultants.com';
        String password = '45j2JpHB^qy*';
        Blob headerValue = Blob.valueOf( username + ':' + password );
        String authorizationHeader = 'BASIC ' + EncodingUtil.base64Encode( headerValue );
        req.setHeader( 'Authorization', authorizationHeader );
        req.setHeader( 'Content-Type', 'application/json' );
        req.setEndpoint( 'https://timerack.zendesk.com/api/v2/users.json' );
        Http binding = new Http();
        HttpResponse res = binding.send( req );
        
        Map<String, Object> results = ( Map<String, Object> )JSON.deserializeUntyped( res.getBody() );
        
       // system.assert(false,results);
        
        List<Object> lstUsers = ( List<Object> )results.get( 'users' );
        List<Map<String, Object>> customerAtt = new List< Map< String, Object >>();
        for ( Object customer : lstUsers ) {
            Map<String, Object> customerAttributes = ( Map< String, Object >)customer;
            customerAtt.add( customerAttributes );
        }
        List< Contact > listContactToUpsert = new List< Contact >();
        for( Map< String, Object> attMap : customerAtt ){
            Contact ct = new Contact();
            String fullName = String.valueOf( attMap.get( 'name' ));
            if( fullName.split(' ').size() > 1 ){
                ct.FirstName = fullName.substring( 0, fullName.indexOf(' ') );
                ct.LastName = fullName.substring( fullName.indexOf(' ') + 1 );
            }else{
                ct.LastName = fullName;
            }
            ct.Zendesk_Id__c = String.valueOf(attMap.get( 'id' ));
            System.debug('Zendesk id'+ct.Zendesk_Id__c);
            ct.email = String.valueOf( attMap.get( 'email' ));
                        System.debug('Zendesk id'+ct.email);

            ct.Zd_url__c =  String.valueOf( attMap.get( 'url' ));
                        System.debug('Zendesk id'+ct.Zd_url__c);

            ct.Zd_time_zone__c = String.valueOf(attMap.get('time_zone'));
                        System.debug('Zendesk id'+ct.Zd_time_zone__c);

            ct.Zd_iana_time_zone__c = String.valueOf( attMap.get( 'iana_time_zone' ));
                        System.debug('Zendesk id'+ct.Zd_iana_time_zone__c);

            ct.phone = String.valueOf( attMap.get( 'phone' ));
                        System.debug('Zendesk id'+ct.phone);

            ct.Zd_Shared_phone_number__c = Boolean.valueOf( attMap.get( 'shared_phone_number' ));
                        System.debug('Zendesk id'+ct.Zd_Shared_phone_number__c);

            ct.Photo__c = String.valueOf( attMap.get( 'photo' ));
                        System.debug('Zendesk id'+ct.Photo__c);

            ct.locale__c = String.valueOf( attMap.get( 'locale' ));
            System.debug('Zendesk id'+ct.locale__c);

            ct.locale_id__c =  Integer.valueOf(attMap.get('locale_id'));
            System.debug('Zendesk id'+ct.locale_id__c);

            ct.Zd_Organisation_id__c = String.valueOf( attMap.get( 'organization_id' ));
             System.debug('Zendesk id'+ct.Zd_Organisation_id__c);

            ct.Zd_role__c =  String.valueOf( attMap.get( 'role' ));
                System.debug('Zendesk id'+ ct.Zd_role__c);

            ct.Zd_verified__c = Boolean.valueOf( attMap.get( 'verified' ));
                 System.debug('Zendesk id'+ct.Zd_verified__c);

            ct.External_Id__c = String.valueOf( attMap.get( 'external_id' ));
                        System.debug('Zendesk id'+ct.External_Id__c);

            ct.Zd_Tags__c = String.valueOf(attMap.get('tags'));
                        System.debug('Zendesk id'+ct.Zd_Tags__c);

            ct.Alias__c = String.valueOf( attMap.get( 'alias' ));
                        System.debug('Zendesk id'+ct.Alias__c);

            ct.Active__c = Boolean.valueOf( attMap.get( 'active' ));
                        System.debug('Zendesk id'+ct.Active__c);

            ct.Zd_Shared__c = Boolean.valueOf( attMap.get( 'shared' ));
                        System.debug('Zendesk id'+ct.Zd_Shared__c);

            ct.Zd_Shared_agent__c = Boolean.valueOf( attMap.get( 'shared_agent' ));
                        System.debug('Zendesk id'+ct.Zd_Shared_agent__c);

            ct.Zd_last_login_at__c = Date.valueOf( attMap.get( 'last_login_at' ));
                        System.debug('Zendesk id'+ct.Zd_last_login_at__c);

            ct.Zd_two_factor_auth_enabled__c = Boolean.valueOf(attMap.get('two_factor_auth_enabled'));
                        System.debug('Zendesk id'+ct.Zd_two_factor_auth_enabled__c);

            ct.Zd_Signature__c = String.valueOf(attMap.get('signature'));
                        System.debug('Zendesk id'+ct.Zd_Signature__c);

            ct.Notes__c = String.valueOf( attMap.get( 'notes' ));
                        System.debug('Zendesk id'+ct.Notes__c);

            ct.Role_Type__c = Integer.valueOf( attMap.get( 'role_type' ));
                        System.debug('Zendesk id'+ct.Role_Type__c);

            ct.Custom_Role_id__c =  Integer.valueOf(attMap.get('custom_role_id'));
                        System.debug('Zendesk id'+ct.Custom_Role_id__c);

            ct.Moderator__c = Boolean.valueOf(attMap.get('moderator'));
                        System.debug('Zendesk id'+ct.Moderator__c);

            ct.Zd_ticket_restriction__c = String.valueOf(attMap.get('ticket_restriction'));
                        System.debug('Zendesk id'+ct.Zd_ticket_restriction__c);

            ct.Only_private_Comments__c = Boolean.valueOf( attMap.get( 'only_private_comments' ));
                        System.debug('Zendesk id'+ct.Only_private_Comments__c);

            ct.Zd_Restricted_Agent__c = Boolean.valueOf( attMap.get( 'restricted_agent' ));
                        System.debug('Zendesk id'+ct.Zd_Restricted_Agent__c);

            ct.Zd_Suspended__c = Boolean.valueOf( attMap.get( 'suspended' ));
                        System.debug('Zendesk id'+ct.Zd_Suspended__c);

            ct.Chat_only__c = Boolean.valueOf( attMap.get( 'chat_only' ));
                        System.debug('Zendesk id'+ct.Chat_only__c);

            ct.Zd_default_group_id__c = Integer.valueOf( attMap.get( 'default_group_id' ));
                        System.debug('Zendesk id'+ct.Zd_default_group_id__c);

            ct.Zd_report_csv__c = Boolean.valueOf( attMap.get( 'report_csv' ));
                        System.debug('Zendesk id'+ct.Zd_report_csv__c);

            
            listContactToUpsert.add(ct);
            /*if(ct.Name == 'testBC'){
               System.assert(false, listContactToUpsert);
              }*/
        }
        insert listContactToUpsert;
    }
    public void finish(Database.BatchableContext BC){
        
    }  
    
}
I would like to create a Trigger to set EndDate of record when user clicks Delete button and cancel the delete request.
Which means when user clicks delete button on contact object, trigger should not delete the record rather just set EndaDate.
 
I have tried beforeDelete and afterDelete triggers but I'm not able to pass values for undeleting the record from trigger logic
 
Can anyone give me right direction to do so?

Thanks in advance!

 
When attempting to bring Zendesk tickets into Salesforce and setting up the trigger in Zendesk I receive this error message: "Error during transmission: Salesforce Login Failed (Account: xxx): LOGIN_OAUTH_API_DISABLEDFailed: OAuth Api Access Disabled".

I am using Salesforce Professional. According to this article, I should be able to integrate:
https://support.zendesk.com/hc/en-us/articles/203660026#topic_ptq_bqx_g4

How can I enable OAuth Api Access in Salesforce Professional?

Please help!
 
Hi Experts,

 I'm building a bot that has pre-chat form enabled. Here I've got 2 Questions
  • I see only 3 values in the dropdown.
User-added image
Here, how can I get Name, EmailAddress in the dropdown (I'm able to get them in pre-chat form)
  • If I get Name in the dropdown, I assign it to a variable, say varName(type=text), with pre-chat api enabled, if I add Hello, {!varName} to my message block, will it print Hello, UserNameEntered or Hello, {!varName} ?
Thanks

I am working on creating a Automated Data Dictionary using Conga Composer. I am looking to Get the Label, API name, DataType, and Description.Right now I am Able to run this query into the FieldDefinition:

Select DeveloperName, Label, Datatype 
From FieldDefinition where EntityDefinition.QualifiedApiName = 'Plan__c' 
ORDER BY DeveloperName


But when i run this Query into CustomField i get an Error:
Select DeveloperName, Label, Datatype 
From FieldDefinition where EntityDefinition.QualifiedApiName = 'Plan__c' 
ORDER BY DeveloperName


Error:
ERROR at Row:1:Column:53
sObject type 'CustomField' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names.



I am able to run both Queries in Dev Console but how can I Run both in Conga to get the Information I want. or is there even a better way?

This is strange.  I have apex:messages that work correctly in Lightning, however, in Classic they do not show.  After some researching, I tried putting the messages in an outputText.  But then it doesn't render with the set styling.  So for example, it renders the text in white but if I set it to black, red or any other color, it just ignores it and still puts it in white.  Any ideas?  Below are code snippets.
 
<div >
 <apex:Messages style="color:white;font-size:1.3em;font-weight:bold"/>

 <apex:outputText rendered="errorStatus" style="color:#ff0606;" value="{!errorMsg}" id="msg"/>


 </div>
 
if(Opp.StageName != 'Closed Won')
        {
            stageStatus = Opp.StageName;
            pageStatus = false;
            errorStatus = true;
            ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.ERROR,'The opportunity has not been won yet. You must mark the opportunity as Closed Won before finalizing it!'));
            errorMsg = 'The opportunity has not been won yet. You must mark the opportunity as Closed Won before finalizing it!';
        }

 
After I login into my developer account, the pages comes into japanese. I tried with chrome, edge and even internet explorer.

Thanks in Advance. 
Hi,

we are facing a problem regarding the ServiceReportLanguage field on WorkOrder object.
We tried to update via Apex

Workorder w = new Workorder(ServiceReportLanguage = 'FR');
insert w;

The system raised this error:

{ "column": "15", "compileProblem": "Field does not exist: ServiceReportLanguage on WorkOrder", "compiled": "false", "exceptionMessage": "", "exceptionStackTrace": "", "line": "1", "success": "false" }

We also tried to query using a Workbench:

select id, ServiceReportLanguage from workorder limit 1

but we faced this error:

INVALID_FIELD: 
select id, ServiceReportLanguage from workorder

ERROR at Row:1:Column:12
No such column 'ServiceReportLanguage' on entity 'WorkOrder'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.

T&R,
Giuseppe.
Hi,

How do I upsert Account & its Contacts at the same time using Bulk API ?
Creation of External Id is the only way to upsert Account & its Contacts at the same time using Bulk API ?

Thanks,
Nilesh
Hi All,
In the code scanning, I am facing the Client Insufficient ClickJacking Protection issue.
Scan Result:
User-added image
Can anyone please provide me any solution on this?

Thanks,
Pratik
Hi,
I try with this solution,
https://developer.salesforce.com/forums/?id=9060G0000005Pc1QAE
but It returns the ip ogf salesforce server. I want to get ip of client guest user of a ligghtning community.
Is there a solution?
Thankyou in advance
Hi,

I want to create a user with admin permissions but with no option of logging in the environment.
The purpose of this task is to give our partner an external access to Salesforce by API (so he could open cases for example) without exposing him to our data.

Or maybe there is another, better way?

Thanks in advance.
 
Hi Team,
I am using SOAP api with C# environment, trying to update the Owner in  "Work_Assignment__c". but am getting the issue "The external foreign key reference does not reference a valid entity: Owner". I can able to get Owner Id, Owner Name by using Owner.Id,Owner.Name field.
Please hel me to resolve this issue and below is my code.

sObject attach = new sObject();
 System.Xml.XmlDocument xmlDoc = new System.Xml.XmlDocument();
 attach.type = "Work_Assignment__c";
 attach.Id = "a1O0n000000DLZ4EAO";
attach.Any = new System.Xml.XmlElement[1];
attach.Any[0] = xmlDoc.CreateElement("Owner");
attach.Any[0].InnerXml = "0050n0000017hBGAAY"; // Owner Id
SaveResult[] results;
LimitInfo[] limitInfo;
List<sObject> attchmentlist = new List<sObject>();
attchmentlist.Add(attach);
queryClient.update(header, //sessionheader 
                                  null,   //calloptions1 
                                  null,   //assignmentruleheader 2
                                  null,   //mruheader 3
                                  null,   //allowfieldtruncationheader4 
                                  null,   //disablefeedtrackingheader 5
                                  null,  //streamingenabledheader 6
                                  null,   //allornothingheader 7
                                  null, //DuplicateRule header8
                                  null, //Loacaleoption9
                                  null,   //debuggingheader10 
                                  null,   //packageversionheader11 
                                  null, // emailheader
                                  null,   //emailheader 
                                  attchmentlist.ToArray(), //new attachment or issue or anyother object 
                                 out limitInfo,
                                  out results //result of create operation 
                                  );


 
I'm trying to create an Invocable Apex Class to Search Articles within Einstein bots. I'm using the "Einstein Bot Cookbook for Intermediate Developers" pdf which provides the following but i'm getting an Illegal string literal: Line breaks are not allowed in string literals error when trying to run.


String sArticleBaseUrl = getCommunityArticleBaseUrl();
        String sKeyword = faqSearchInput[0].sKeyword;
        String sQuery = 'FIND \'' + sKeyword + '\' IN ALL FIELDS RETURNING
            KnowledgeArticleVersion(Id, Title, UrlName WHERE PublishStatus = \'Online\'
                                    AND Language = \'en_US\' AND IsVisibleInPkb = true) WITH SNIPPET
                                    (target_length=255) LIMIT 3';
                                    Search.SearchResults searchResults = Search.find(sQuery);
                                    List<Search.SearchResult> articlelist =
                                    searchResults.get('KnowledgeArticleVersion');
                                    String sFAQSearchResult = '';
                                    for (Search.SearchResult searchResult : articlelist)
Hello, I would like to know a way to export the Einstein bot event logs from the Bot Performance Dashboard / conversations. I didnt find the options to export through EventLogFile Obeject.

Any kind of help or suggestions are appreciated.

Regards,
Naidu
Host: https://YOUR_SUBDOMAIN.rest.marketingcloudapis.com POST /messaging/v1/messageDefinitionSends/dfa5ab87-1b0f-e211-b71b-9c8e9920e9fc/send Content-Type: application/json Authorization: Bearer YOUR_ACCESS_TOKEN

What is the SendID that is mentioned in the above given URL? How do we obtain that from SFMC?
Robot not working on this unit. Trail "Customize an Org to Support a New Business Unit" and unit is "Manage Users". I completed the challenge in two playgrounds (1 and 2) - but the robot is stuck at one user being incorrect (Fumiko Suzuki - who I created twice in PG 2 and again in PG 1. No luck getting the robot to recognize it. 
Any ideas on how to fix it??
 
I have a custom object called Policies which has a lookup field to Contacts. 

In the Case object, I have created a lookup field to Policies. When a user inputs the Policy number I'd like the Case Contact Lookup field to auto populate with the Contact name related to that policy number. 

Can anyone help me with the code for this? Also, if I introduce a trigger on the Case record, will this have an affect on my email to case function. I had configured a Lookup filter on the Contact lookup field which prevented the email to case from working. So I had to remove it. 
  • October 23, 2016
  • Like
  • 1
Hi All,

We have a requirement where based on the Last Modified User we need to set the Priority value in a custom Field. However, we are doing this in the Before Update Event and hence are not getting the value for the Last Modified By in the Trigger.new. Can you please help us understand in which user's perspective would the Data.com Clean Job run so that we can Identify that the record was updated by a Data.com Clean Job.

What would be the value that UserInfo.getUserId() return in the before update event in this case as the data.com Clean Job runs in the background?

Thanks in advance.
Hello,

I started the "Start Exploring Wave Analytics" Trail and I need to registrate for creation of a specific wave enabled demo.
It seems the form submission is frozen so far.
Could someone help?

Thanks!
Hi frnds,
     I created a community with napili template and created a tab(navigation menu) which contains a custom object.In deskop,We are able to create records of that object but once we login into community from salesforce1 app in mobile,we are unable to create records as "New" button is not visible. Let me know if anyone has some solution to it...