• Integration Org 3
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 3
    Replies
Hello,

I have 3 record edit forms for objects A, B, and C, B and C have a lookup relation with A.

All the required fields have an aura:id="req" required='true' on lightning: inputfield.
I am trying to update the records on click of a custom submit button by fetching the required field by aura:id  and using the component.find('recordeditform id').submit().

I am trying to display an error message on each empty required field, suppose if 10 required fields are there and 4 are empty so the record should not get updated and those 4 fields should show an error message.
Hello Guys, I am trying to create a form to create a record.
Object A is the Parent object and Object B and C have a lookup relation with Object A.

I want to use this component like a button on quick action on Object a detail page.

on click of a button, the form should pop up with input fields.

I want to create a form where fields from Object A, B, and C will be available as an input field and on click of a save button, the record should get saved.

I want to put this component as a quick action on Object A.

I am confused with how to get the B and C object fields as input fields on the form.
 
Hello,

I am trying to fetch the Post Office data (endpoint added to the remote site settings)from- https://api.postalpincode.in/pincode/411027

Here is my HTTP callout request class : 
 
public class PostalPinCode {
    Public  void findPostalOffice(integer pin){
        try{
            
            Http http = new Http();
            HttpRequest request = new HttpRequest();
            request.setEndpoint('https://api.postalpincode.in/pincode/'+pin);
            request.setMethod('GET');
            request.SetTimeOut(5000);
            
            HttpResponse response = http.send(request);
            // If the request is successful, parse the JSON response.
            system.debug('Status code' + response.getStatusCode());
            if (response.getStatusCode() == 200) {
                String result  = response.getBody();
                system.debug('Post::' + result);
                //List<PostalWrapper> wrapper  = (List<PostalWrapper>)JSON.deserialize(result, List<PostalWrapper>.class);
            }
        }
        catch(Exception e){
            system.debug('Exception :: '+  e.getMessage());               
        }
    }
    
    Public Class PostalWrapper{
        public String Message{get;set;}
        public String Status{get;set;}
        Public List<PostOffices> PostOffices{get;set;}
    }
    
    Public Class PostOffices{
        public String Name{get;set;}
        public String Description{get;set;}
        public String BranchType{get;set;}
        public String DeliveryStatus{get;set;} 
        public String Circle{get;set;}
        public String District{get;set;}
        public String Message{get;set;}
        public String Division{get;set;}
        public String Block{get;set;}
        public String State{get;set;}
        public String Country{get;set;}
        public String Pincode{get;set;}
    }
    
}
The Response output from Postman is like this : 
[
    {
        "Message": "Number of pincode(s) found:2",
        "Status": "Success",
        "PostOffice": [
            {
                "Name": "Aundh Camp",
                "Description": null,
                "BranchType": "Sub Post Office",
                "DeliveryStatus": "Delivery",
                "Circle": "Maharashtra",
                "District": "Pune",
                "Division": "Pune City East",
                "Region": "Pune",
                "Block": "NA",
                "State": "Maharashtra",
                "Country": "India",
                "Pincode": "411027"
            },
            {
                "Name": "Sangavi",
                "Description": null,
                "BranchType": "Sub Post Office",
                "DeliveryStatus": "Non-Delivery",
                "Circle": "Maharashtra",
                "District": "Pune",
                "Division": "Pune City East",
                "Region": "Pune",
                "Block": "Pune City",
                "State": "Maharashtra",
                "Country": "India",
                "Pincode": "411027"
            }
        ]
    }
]
When I'm trying to deserialize using the wrapper class the error is like "DEBUG|wrapper :(PostalWrapper:[Message=Number of pincode(s) found:6, PostOffices=null, Status=Success])"
 
I am trying to integrate Salesforce and Microsoft Teams and get  All meetings and calendar events into salesforce and store the details into a custom object.

I have registered an application on the Azure portal and followed these steps from this link: https://docs.microsoft.com/en-us/graph/auth-v2-service?view=graph-rest-1.0

I have the client id, secret key, tenant id, and also able to generate an access token and get the user details using the HTTP method request.setEndpoint('https://graph.microsoft.com/v1.0/users');

Is there any way to get the calendar events and all the meetings created in the meeting app?

 
Hello,

I have 3 record edit forms for objects A, B, and C, B and C have a lookup relation with A.

All the required fields have an aura:id="req" required='true' on lightning: inputfield.
I am trying to update the records on click of a custom submit button by fetching the required field by aura:id  and using the component.find('recordeditform id').submit().

I am trying to display an error message on each empty required field, suppose if 10 required fields are there and 4 are empty so the record should not get updated and those 4 fields should show an error message.
I am trying to integrate Salesforce and Microsoft Teams and get  All meetings and calendar events into salesforce and store the details into a custom object.

I have registered an application on the Azure portal and followed these steps from this link: https://docs.microsoft.com/en-us/graph/auth-v2-service?view=graph-rest-1.0

I have the client id, secret key, tenant id, and also able to generate an access token and get the user details using the HTTP method request.setEndpoint('https://graph.microsoft.com/v1.0/users');

Is there any way to get the calendar events and all the meetings created in the meeting app?