• Rahul Jain 199
  • NEWBIE
  • 20 Points
  • Member since 2019

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

I want to show(visualforce page or lightning component) all fields of parent and child objects just like in the below image.

Can anyone help me with this?

User-added image

Thanks in advance

Hi,
I want to get all changed sources from the Sandbox org to my project(VScode) to keep them in sync.
Hello Everyone,
I need to map some custom object fields with some third party app's field.And then insert the value in salesforce selected object's fields
Apex code:
public static  void customObjectFields(String SalesforceField, String selectedThirdAppField){
        List < string > ThirdAppField = new list < string > {'Name','Phone','Email','Address'};  
        customObject newcustomObject = new customObject();
        SObjectType objTokencustomObject = Schema.getGlobalDescribe().get('customObject');
        DescribeSObjectResult objDefcustomObject = objTokencustomObject.getDescribe();
        Map<String, SObjectField> fieldscustomObject = objDefcustomObject.fields.getMap(); 
        Set<String> fieldSetcustomObject = fieldscustomObject.keySet();
        for(String s:fieldSetcustomObject)
        {
            SObjectField fieldToken = fieldscustomObject.get(s);
            DescribeFieldResult selectedField = fieldToken.getDescribe();
            if(SalesforceField == selectedField.getName()) {
           /*    
                for(list<string> comparefields : ThirdAppField ){
                    if(selectedThirdAppField === ThirdAppField){
                        JSONParser parser = JSON.createParser(response.getBody());
                        // Parsing of string      product_type tags /Variants price sku weight weight_unit created_at
                        while(parser.nextToken()!= null) { 
                            if(parser.getCurrentToken() == JSONToken.FIELD_NAME) {
                                parser.nextValue();
                                //here the newcustomObject field is map with shopify field 
                                if(parser.getCurrentName() == selectedThirdAppField) {   // here find the field from json response
                                    newcustomObject.SalesforceField = parser.getText(); // here insert the value in selected salesforce field 
                                    system.debug('prod.Name '+prod.Name);
                                }
                            }    
                        }
                    }
                }
            */
                system.debug('SalesforceField : '+selectedField.getName());
            }
        }
    }
Any help or suggestion will be appreciated.

Hello Everyone,

I need to map some custom object fields with some third party app's field.And then insert the value in salesforce selected object's fields

Apex code:

public static  void customObjectFields(String SalesforceField, String selectedThirdAppField){
        List < string > ThirdAppField = new list < string > {'Name','Phone','Email','Address'};  
        customObject newcustomObject = new customObject();
        SObjectType objTokencustomObject = Schema.getGlobalDescribe().get('customObject');
        DescribeSObjectResult objDefcustomObject = objTokencustomObject.getDescribe();
        Map<String, SObjectField> fieldscustomObject = objDefcustomObject.fields.getMap(); 
        Set<String> fieldSetcustomObject = fieldscustomObject.keySet();
        for(String s:fieldSetcustomObject)
        {
            SObjectField fieldToken = fieldscustomObject.get(s);
            DescribeFieldResult selectedField = fieldToken.getDescribe();
            if(SalesforceField == selectedField.getName()) {
           /*    
                for(list<string> comparefields : ThirdAppField ){
                    if(selectedThirdAppField === ThirdAppField){
                        JSONParser parser = JSON.createParser(response.getBody());
                        // Parsing of string      product_type tags /Variants price sku weight weight_unit created_at
                        while(parser.nextToken()!= null) { 
                            if(parser.getCurrentToken() == JSONToken.FIELD_NAME) {
                                parser.nextValue();
                                //here the newcustomObject field is map with shopify field 
                                if(parser.getCurrentName() == selectedThirdAppField) {   // here find the field from json response
                                    newcustomObject.SalesforceField = parser.getText(); // here insert the value in selected salesforce field 
                                    system.debug('prod.Name '+prod.Name);
                                }
                            }    
                        }
                    }
                }
            */
                system.debug('SalesforceField : '+selectedField.getName());
            }
        }
    }

Any help or suggestion will be appreciated.

Hello,

I'm trying to display a message error on the lightning component when I get some error on my apex class, like when I call apex and delete account and Customeobject__c but one of them is not deleted and  response will be ''Success"

Please, can anyone could help me?
I want to take backup of my newly refreshed sandbox org. While doing so via MavensMate, it is showing oAuth error like below. 
Is this the issue for all newly created/refreshed orgs ??. 
If yes, I want to know how to take backup of org via vs code directly without mavens.
Thanks in advance.User-added image