2

When i try using tooling api with below code snippet i am getting empty list in tabVisibilities attribute. Any inputs will be of great help to the team.

Code Snippets

var conn = new jsforce.Connection({ accessToken: GS.sessionId}); 
                  conn.tooling.sobject('Profile')
                    .find({Id:'00e90000001XS1G'})// hard coded the profile id
                    .execute(function(err, records) {
                        if (err) { return console.error(err); }
                        for (var i=0; i < records.length; i++) {
                          var record = records[i];}});

1 Answer 1

1

Firstly, I assume you are looking at the tabVisibilities via the Profile.Metadata. Ref ProfileTabVisibility.

Are the tabVisibilities that you are trying to retrieve Hidden? If so, they aren't retrieved by the API currently (Spring '16).

See Metadata API: Hidden tabVisibilities are not retrieved for Profile.

You might like to vote for the idea Metadata API: Hidden tabVisibilities are not retrieved for Profile

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .