• Pan K.
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
I'm trying to add a custom global action to a Flexipage in Salesforce1, but I can't see any button showing up on the bottom of my Flexipage like the tutorial. I'm on API version 32.
 
<?xml version="1.0" encoding="UTF-8"?>
<FlexiPage xmlns="http://soap.sforce.com/2006/04/metadata">
    <flexiPageRegions>
        <componentInstances>
            <componentInstanceProperties>
                <name>entityName</name>
                <value>MUSW__Inspection__c</value>
            </componentInstanceProperties>
			<componentInstanceProperties>
                <name>filterName</name>
                <value>Mobile_Inspection_List</value>
            </componentInstanceProperties>
            <componentName>flexipage:filterListCard</componentName>
        </componentInstances>
        <name>main</name>
    </flexiPageRegions>
    <masterLabel>Mobile Inspection List</masterLabel>
	<quickActionList>
        <quickActionListItems>
            <quickActionName>New_Inspection</quickActionName>
        </quickActionListItems>
        <quickActionListItems>
            <quickActionName>NewNote</quickActionName>
        </quickActionListItems>
    </quickActionList>
	<type>AppPage</type>
</FlexiPage>

Any thought? All I see on my Flexipage is,

User-added image
  • December 24, 2014
  • Like
  • 0

I would like to create a new custom object record in my mobile app, and push it to Saleforce server. I have following fieldlist in my model,

["Id", "RecordTypeId", "Name", "MUSW__Parcel__r.MUSW__Parcel_Number2__c", "MUSW__Scope__c", "MUSW__Severity__c"];

 

MUSW__Parcel__c is a lookup field from this object(Assessment) to another object(Parcel). I know that in order to get the record upsert, I have to send a REST request with a post body that looks like,

{
  "Name": "myRecordName",
  "MUSW__Scope__c": 2,
   "MUSW__Parcel__r" :
   {
       "MUSW__Parcel_Number2__c" : "019E00800000"
   }
  
}

  where MUSW__Parcel_Number2__c is a field in Parcel object.

 

My question really is how do I structure my fieldlist to get a nested JSON?

 

My POST now has a body of,

{"Name":"test","MUSW__Parcel__r.MUSW__Parcel_Number2__c":"019E00800000","MUSW__Scope__c":"3","MUSW__Severity__c":"Low"}

  and I get an error,

8B
[{"message":"No such column 'MUSW__Parcel__r.MUSW__Parcel_Number2__c' on sobject of type MUSW__Assessment__c","errorCode":"INVALID_FIELD"}]
0

 

 

Thanks!

  • October 17, 2013
  • Like
  • 0
I'm trying to add a custom global action to a Flexipage in Salesforce1, but I can't see any button showing up on the bottom of my Flexipage like the tutorial. I'm on API version 32.
 
<?xml version="1.0" encoding="UTF-8"?>
<FlexiPage xmlns="http://soap.sforce.com/2006/04/metadata">
    <flexiPageRegions>
        <componentInstances>
            <componentInstanceProperties>
                <name>entityName</name>
                <value>MUSW__Inspection__c</value>
            </componentInstanceProperties>
			<componentInstanceProperties>
                <name>filterName</name>
                <value>Mobile_Inspection_List</value>
            </componentInstanceProperties>
            <componentName>flexipage:filterListCard</componentName>
        </componentInstances>
        <name>main</name>
    </flexiPageRegions>
    <masterLabel>Mobile Inspection List</masterLabel>
	<quickActionList>
        <quickActionListItems>
            <quickActionName>New_Inspection</quickActionName>
        </quickActionListItems>
        <quickActionListItems>
            <quickActionName>NewNote</quickActionName>
        </quickActionListItems>
    </quickActionList>
	<type>AppPage</type>
</FlexiPage>

Any thought? All I see on my Flexipage is,

User-added image
  • December 24, 2014
  • Like
  • 0