• Henny Goel
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 5
    Replies
Dear Team ,

Greetings !!!

Please let me know how can i integrate salesforce with NetSuite . Please make available some steps .

Thanks & Regards
Sachin Bhalerao
I have inherited a lot of old code which uses @future methods for doing DML operations. Is there any benefit to doing this? The only thing I can think of is in case there are a lot of records to be updated but I thought @future methods were only really used for callouts.
 
I want to send message from a rest api hit to facebook messanger. for this I reffered the link : https://developers.facebook.com/docs/messenger-platform/send-messages/?translation#sending_text but on hitting the api am getting error.
Httprequest req = new httpRequest();
req.setEndPoint('https://graph.facebook.com/v5.0/me/messages?access_token=EAAUpiIiiEvMBANfxlHZCNRffZAcBahCcpoJ5AxiGYg6ip9t82uNxIXx6HB91w7KNi48S2BilBJLlyu1n9gurdBKerBfVOcMPQv3flGoBWZBCzKYkoL2ZBYYGMokZCcJF63y2uYhY1ZBQNTZBrc0o7zdEVy12s2PuljnBIef9ZBh6PKJXTQ4PcL71wmy0PiO9GpPr3DLlkoljIDzKrvgO4UOm');
String body = '{'+
                '"recipient": {'+
                '"id": "1229442117258672"'+
                '},'+
                '"message": {'+
                '"text": "hello, world!"' +
                '}' +
                '}';
req.setMethod('POST');
req.setBody(body);
req.setHeader('Content-Type','application/json');
Http h = new Http();
HttpResponse res = h.send(req);
system.debug(res.getBody());

Error: { "error": { "message": "(#100) No matching user found", "type": "OAuthException", "code": 100, "error_subcode": 2018001, "fbtrace_id": "AHlqjvar_5mQ78CT1iMu4Ac" } }

Note: The page access token is alive when I tested it and the id provided is recipient is a valid id retrieved by hitting get request using graph api explorer via recipient's facebook account also the sender have the page_messaging permission.
Hi All
Is there any way I can pass data between two vf pages of lightining components which are independent to each other?
Hi, 

I created a lightning component as a quick action button. In the component, I have a cancel button that I want it closed when user clicks.
User-added image

But the problem is that I cannot find any document explain how to close the modal dialog. This is the ui code:
<aura:component controller="ContactController" implements="force:lightningQuickActionWithoutHeader,force:hasRecordId" >
    <style>
        .changeRecordTypeRow {
        margin-top: 1.5rem;
        margin-bottom: 0;
        margin-left: 0;
        margin-right: 0;
        }
        
        .changeRecordTypeLeftColumn {
        float: left;
        text-align: right;
        padding-right: 1.5rem;
        width: 35%;
        font-size: .8125rem;
        color: rgb(84, 105, 141);
        }
        
        .changeRecordTypeRightColumn {
        float: right;
        text-align: left;
        width: 65%;
        }
        
        .modal-body
        {
        	height:auto !important;
        	padding:0;
        }
        
        .forceChatterLightningComponent .bodyWrapper{height:100%;width:100%;padding:0;box-sizing:border-box}
    </style>
    <div class="modal-header slds-modal__header">
        <h2 class="title slds-text-heading--medium" >Change Contact Type</h2>
    </div>
    <div class="scrollable slds-modal__content slds-p-around--medium">
        <div class="changeRecordTypeRow">
            <fieldset class="slds-form-element">
                <div class="changeRecordTypeLeftColumn">
                    <legend class="form-element__legend slds-form-element__label">Select a record type</legend>
                </div>
                <div class="changeRecordTypeRightColumn slds-form-element__control">

                    <span class="slds-radio">
                        <input type="radio" id="radio_PrimaryContact" name="recordType" />
                        <label class="slds-radio__label" for="radio_PrimaryContact">
                            <span class="slds-radio--faux"></span>
                            <span class="slds-form-element__label">Primary Contact</span>
                        </label>
                    </span>
                    <span class="slds-radio">
                        <input type="radio" id="radio_SecondaryContact" name="recordType" />
                        <label class="slds-radio__label" for="radio_SecondaryContact">
                            <span class="slds-radio--faux"></span>
                            <span class="slds-form-element__label">Secondary Contact</span>
                        </label>
                    </span>
                </div>
            </fieldset>
        </div>
	</div>
    <div class="modal-footer slds-modal__footer">
    	<div class="forceChangeRecordTypeFooter">
        	<button type="button" class="slds-button slds-button--neutral .slds-modal__close" aura:id="btnCancel" >
            	Cancel
            </button>
            <button type="button" class="slds-button slds-button--brand" aura:id="btnSave">
            	Save
            </button>
        </div>
    </div>
</aura:component>
Does anyone have similar experience? Thanks in advance.