Help get this topic noticed by sharing it on Twitter, Facebook, or email.

SF_Metadata - Profile only partial

Hi Bill,

We are attempting to use SF_Metadata against Profile and are not getting anything oher than the userPermissions in the XML.

How can we get the other fields available in profile?

Garrett
1 person has
this question
+1
Reply
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned happy, confident, thankful, excited kidding, amused, unsure, silly sad, anxious, confused, frustrated

  • Can you post the row input you are using for the request and the command (list, retrieve) that you are running ?
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned happy, confident, thankful, excited kidding, amused, unsure, silly sad, anxious, confused, frustrated

  • Name Member
    Profile *

    Those are the only fields i'm filling in.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned happy, confident, thankful, excited kidding, amused, unsure, silly sad, anxious, confused, frustrated

  • Here is the key sentence from the salesforce Metadata API manual:  "The content of a profile returned by Metadata API depends on the content requested in the RetrieveRequest message. For example, profiles only include field-level security for fields included in custom objects returned in the same RetrieveRequest as the profiles. "

    So for example, to get profile information related to the account object, you would need 2 rows in the input table:

    Name   Profile
    =============
    CustomObject   Account
    Profile               *
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned happy, confident, thankful, excited kidding, amused, unsure, silly sad, anxious, confused, frustrated

  • I’m frustrated
    Ok, So I think I understand that one.

    Give me all of the Profiles of CustomObject Account.

    But if I do this:

    Name Member
    ===============
    CustomObject Account
    searchLayouts *

    It doesn't return anything and I get Entity type: 'searchLayouts' is unknown

    So I'm trying to figure out the correct syntax and input.

    CustomObject has a property of searchlayouts... but i have tried many combinations of values to no avail.

    For instance CustomObject Account returns nothing nor does it return an error.

    --- Starting SF_Metadata for MD_Settings
    20:11:43: Run the DBAmpNet.exe program.
    C:\"Program Files"\DBAmp\DBAmpNet.exe Retrieve "MD_Settings" "Servername" "dbname" "SALESFORCE"
    20:11:43: DBAmpNet V2.18.3 (c) Copyright 2014 forceAmp.com LLC
    20:11:45: Sending Retrieve package to https://cs3.salesforce.com/services/S...
    20:11:53: Retrieve response received from salesforce.
    20:11:54: Ending DBAmpNet. Operation successful.
    --- Ending SF_Metadata. Operation successful.

    looks good to me but no Metadata xml :-(.

    Garrett
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned happy, confident, thankful, excited kidding, amused, unsure, silly sad, anxious, confused, frustrated

  • When I run a retrieve on

    Name: CustomObject , Member: Account

    I get a metadata xml with a searchLayouts section in it.


    <searchLayouts>
    <customTabListAdditionalFields>ACCOUNT.NAME</customTabListAdditionalFields>
    <customTabListAdditionalFields>ACCOUNT.ADDRESS1_CITY</customTabListAdditionalFields>
    <customTabListAdditionalFields>ACCOUNT.PHONE1</customTabListAdditionalFields>
    <lookupDialogsAdditionalFields>ACCOUNT.NAME</lookupDialogsAdditionalFields>
    <lookupDialogsAdditionalFields>ACCOUNT.SITE</lookupDialogsAdditionalFields>
    <lookupDialogsAdditionalFields>CORE.USERS.ALIAS</lookupDialogsAdditionalFields>
    <lookupDialogsAdditionalFields>ACCOUNT.TYPE</lookupDialogsAdditionalFields>
    <lookupDialogsAdditionalFields>ACCOUNT.ADDRESS1_COUNTRY</lookupDialogsAdditionalFields>
    <lookupDialogsAdditionalFields>ACCOUNT.PHONE1</lookupDialogsAdditionalFields>
    <lookupPhoneDialogsAdditionalFields>ACCOUNT.NAME</lookupPhoneDialogsAdditionalFields>
    <lookupPhoneDialogsAdditionalFields>ACCOUNT.SITE</lookupPhoneDialogsAdditionalFields>
    <lookupPhoneDialogsAdditionalFields>CORE.USERS.ALIAS</lookupPhoneDialogsAdditionalFields>
    <lookupPhoneDialogsAdditionalFields>ACCOUNT.TYPE</lookupPhoneDialogsAdditionalFields>
    <lookupPhoneDialogsAdditionalFields>ACCOUNT.PHONE1</lookupPhoneDialogsAdditionalFields>
    <searchResultsAdditionalFields>ACCOUNT.NAME</searchResultsAdditionalFields>
    <searchResultsAdditionalFields>ACCOUNT.SITE</searchResultsAdditionalFields>
    <searchResultsAdditionalFields>ACCOUNT.PHONE1</searchResultsAdditionalFields>
    <searchResultsAdditionalFields>CORE.USERS.ALIAS</searchResultsAdditionalFields>
    </searchLayouts>
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned happy, confident, thankful, excited kidding, amused, unsure, silly sad, anxious, confused, frustrated

  • When I do it I get this success:

    --- Starting SF_Metadata for MD_Settings
    13:08:37: Run the DBAmpNet.exe program.
    C:\"Program Files"\DBAmp\DBAmpNet.exe Retrieve "MD_Settings" "AUSEQLDITSQL01" "Webrepos" "Salesforce"
    13:08:37: DBAmpNet V2.18.3 (c) Copyright 2014 forceAmp.com LLC
    13:08:39: Sending Retrieve package to https://cs3.salesforce.com/services/S...
    13:08:48: Retrieve response received from salesforce.
    13:08:49: Ending DBAmpNet. Operation successful.
    --- Ending SF_Metadata. Operation successful.

    and then metadataxml is blank meaning it isn't null which it was before running it.

    I am using the System API admin who we are doing successful API calls with the .NET calls. Was just trying to eliminate having to write that code for each thing we want.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned happy, confident, thankful, excited kidding, amused, unsure, silly sad, anxious, confused, frustrated

  • Send me an email at support at forceamp.com so we can setup a web meeting to take a look.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned happy, confident, thankful, excited kidding, amused, unsure, silly sad, anxious, confused, frustrated