• Trail Head 33
  • NEWBIE
  • 5 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 7
    Replies
Hi ,


Challenge Not yet complete... here's what's wrong: 
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: TZTDWCAD
Close errors

Please help on this error.

Thanks,
karthik.
Hello Everyone,

my code is:
component1:
<aura:component>
    <aura:registerEvent name="createRecord" type="c:Event"/>
    <ui:button action={!c.createRecord}>Create Record</ui:button>
    <c:form/>
</aura:component>
controller1:
createRecord:function(cmp,event){
    var evt = cmp.getEvent("createRecord");
    evt.fire();
}
form-
<aura:component controller="saveRecord">
    <aura:attribute name="account" type="Account[]"/>
    <aura:handler name="createRecord" action="{!c.createRecord}" event="c:Event"/>
    <aura:attribute name="newAccount" type="Account"
         default="{ 'sobjectType': 'Account',
                         'Name': '',
                         'AccountNumber': '',
                         'AccountSource':'',
                         'Active__c': '',
                       }"/>
    <ui:inputText aura:id="Name" label="Account Name"  value="{!v.newAccount.Name}" required="true"/>
    <ui:inputText label="Account Name"  value="{!v.newAccount.accountNumber}"/>
    <ui:inputText label="Account Name"  value="{!v.newAccount.accountSource}" />
    <ui:inputText label="Account Name"  value="{!v.newAccount.Active__c}"/>
</aura:component>
form controller-
 createRecord : function(component, event, helper) {
        var accField = component.find("Name");
        var acc = accField.get("v.value");
        if (acc==''){
            accField.set("v.errors", [{message:"Enter account name."}]);
        }
        else {
            accField.set("v.errors", null);
            var newAccount = component.get("v.newAccount");
            helper.createRecord(component, newAccount);
        }
    }
form helper-
createrecord:function(cmp,event,callback){
var action = component.get("c.saveAccount");
        action.setParams({
            "account": account
        });
        if (callback) {
          action.setCallback(this, callback);
        }
        $A.enqueueAction(action);
}
I'm not able to create any record on click of the button, how will it be possible?
Thanks in advance
I have brought content delivery related list on my account page layout and it is working fine on desktop but not on the salesforce 1 .Can anyone tell me what is the problem??
Does Content delivery work on salesforce1??
Hello everyon
I have created one Rest api for creating Contacts. How I can test my rest api by passing xml . is ther any way that I test my rest api. I tested using json parser in workbench but I am not able to test my rest api apex code by parsing xml.

//apex class    
@Httppost
    Global static String candidateInformation(List<Candidate> Candidates, String reqSessionId) {

Note: How I can read the xml in Rest api apex class ?
 
//Parsing xml request
<?xml version="1.0" encoding="UTF-8"?>
-<Candidates>
   -<Candidate>
            <JobID>string</JobID>
             <EmailAddress>string</EmailAddress>
              <FirstName>string</FirstName>
              <LastName>string</LastName>
              <Phone>string or int</Phone>        
             -<CoverLetter>
                   -<![CDATA[string]]>
              </CoverLetter>
              -<ResumeText>
                    -<![CDATA[string]]>
              </ResumeText>
             -<Base64Stream>
                   -<![CDATA[string]]>
               </Base64Stream>
     </Candidate>
</Candidates>
Visual Force:-

<apex:commandButton value="Postit" action="{!postit}"/>

Class:-
public class ChatterRestApi {
                                
    public PageReference postit() {
    Http http = new Http();
    HttpRequest req = new HttpRequest();
    
     req.setEndpoint('https://avenger2-dev-ed.my.salesforce.com/services/data/v37.0/chatter/feeds/user-profile/00528000003IL9C/feed-elements');
     req.setMethod('Post');
     req.setHeader('Authorization', 'OAuth '+UserInfo.getSessionId());
     req.setHeader('content-type','application/json');
     req.setBody('{ "body" : { "messageSegments" : [ { "type" : "Text", "text" : "When should we meet for release planning " }');
     
     HttpResponse res = http.send(req);
     System.debug(res);
        return null;
    }
}
Hi,

According to below link, I can (select) encrypt custom field if it falls in to any mentioned category below.
  • Email
  • Phone
  • Text
  • Text Area
  • Text Area (Long)
  • URL
  • Date
  • Date/Time

https://help.salesforce.com/HTViewHelpDoc?id=security_pe_overview_fields.htm

Here what I cannot understand is, I have created a text custom field in the Account standard object, but it does not showing in the Field List of the "Platform Encryption" page. What I'm doing wrong here?