Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SharingRule component type support #65

Open
afawcett opened this issue Dec 22, 2014 · 30 comments

Comments

@afawcett
Copy link
Contributor

commented Dec 22, 2014

These are currently not supported, the patcher class needs updating to consider the multi level inheritance these types use.

@afawcett afawcett added the bug label Dec 22, 2014
@afawcett

This comment has been minimized.

Copy link
Contributor Author

commented Jan 24, 2015

Note sure if Salesforce have been watching the challanges here with these types, but spookly these changes to collapse and simplify the data types for sharing rules, will make things a LOT easier! http://docs.releasenotes.salesforce.com/en-us/spring15/release-notes/rn_api_meta.htm

"SharingRules now contains these child subtypes: SharingCriteriaRule, SharingOwnerRule, and SharingTerritoryRule.
All sharing rules for an organization can now be retrieved and deployed for all objects with wildcard support. Retrieving and deploying of manual sharing and sharing rules by type (criteria, owner, and territory) is not supported.

These types are no longer available: AccountSharingRules, CampaignSharingRules, CaseSharingRules, ContactSharingRules, LeadSharingRules, OpportunitySharingRules, AccountTerritorySharingRules, CustomObjectSharingRules."

@afawcett

This comment has been minimized.

Copy link
Contributor Author

commented Jan 24, 2015

Once Spring'15 has rolled out, i'll take a closer look!

@douglascayers

This comment has been minimized.

Copy link
Contributor

commented Jan 24, 2015

Thanks for the updates

@douglascayers

This comment has been minimized.

Copy link
Contributor

commented Jan 24, 2015

A few weeks ago I had been hacking on the metadata api class to try and build the custom object sharing rules but got to point where I had no idea how to indicate which custom object the rule was for. In eclipse, the object is implied by the file name and I didn't readily see how that would be conveyed via programmatic api. Hopefully the new salesforce update simplifies this

@BudVieira

This comment has been minimized.

Copy link

commented Jan 24, 2015

Thanks, Andy, that is great news. If there are any additional details you want me to get, I can ping the appropriate dev teams.

@afawcett

This comment has been minimized.

Copy link
Contributor Author

commented Jan 26, 2015

Sure thing! 👍

@afawcett

This comment has been minimized.

Copy link
Contributor Author

commented Apr 8, 2015

Pretty close to this now, will be sharing later today! 👍

@afawcett

This comment has been minimized.

Copy link
Contributor Author

commented Apr 8, 2015

  • createSharingRules is giving an error i don't get, since wsdl says its optional, its saying 'Error occured processing component Test__c. Required field is missing: sharingTerritoryRules (FIELD_INTEGRITY_EXCEPTION).'
  • readSharingRules is working.
  • deleteSharingRules is giving a gack when i pass Test__c.NameOfMyRule, though tbh not sure what to pass it. Passing it just the object name, gives an error about a child object dependency which makes me wonder if its trying to delete the object?

@BudVieira help! 👍

@BudVieira

This comment has been minimized.

Copy link

commented Apr 13, 2015

Hi Andrew,

PM asks:

  1. Is he using the file-based APIs or the Metadata CRUD ones?
  2. Which version of the API is he using?

On Wed, Apr 8, 2015 at 8:48 AM, Andrew Fawcett notifications@github.com
wrote:

@BudVieira https://github.com/BudVieira help! [image: 👍]


Reply to this email directly or view it on GitHub
#65 (comment)
.

@afawcett

This comment has been minimized.

Copy link
Contributor Author

commented Apr 14, 2015

  1. CRUD ones
  2. API 33
@BudVieira

This comment has been minimized.

Copy link

commented Apr 16, 2015

Thanks, Andrew - checking on it ..,

On Tue, Apr 14, 2015 at 1:17 PM, Andrew Fawcett notifications@github.com
wrote:

  1. CRUD ones
  2. API 33


Reply to this email directly or view it on GitHub
#65 (comment)
.

@BudVieira

This comment has been minimized.

Copy link

commented Apr 23, 2015

Hi Andy,

Sorry about the late response here. Sharing PM says the Metadata team found
that some CRUD operations weren't firing the same actions as the file-based
API, but not sure whether a fix could be patched into 196.

I'll keep you posted.

Bud

On Tue, Apr 14, 2015 at 1:17 PM, Andrew Fawcett notifications@github.com
wrote:

  1. CRUD ones
  2. API 33


Reply to this email directly or view it on GitHub
#65 (comment)
.

@afawcett

This comment has been minimized.

Copy link
Contributor Author

commented Apr 29, 2015

Ok great thanks!

@afawcett

This comment has been minimized.

Copy link
Contributor Author

commented Dec 11, 2015

@BudVieira any update on the above issues?

@sathishvenks

This comment has been minimized.

Copy link

commented Apr 26, 2016

Hello - Is there any update on this issue please?

@afawcett

This comment has been minimized.

Copy link
Contributor Author

commented Apr 27, 2016

@BudVieira any updates?

@BudVieira

This comment has been minimized.

Copy link

commented Apr 28, 2016

I have asked the PM ... We'll see what he says.

Hope all is well with you!

Bud

On Apr 27, 2016, at 3:43 PM, Andrew Fawcett notifications@github.com wrote:

@BudVieira any updates?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

@BudVieira

This comment has been minimized.

Copy link

commented Apr 28, 2016

Hi - here's the latest I have from the PM - let me know if it's not
responsive to the issues you have been having.

"We did that a couple releases ago. It's a little confusing how it works
though.

https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_sharingrules.htm
"

Bud

On Mon, Apr 25, 2016 at 5:15 PM, sathishvenks notifications@github.com
wrote:

Hello - Is there any update on this issue please?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#65 (comment)

@BudVieira

This comment has been minimized.

Copy link

commented Apr 28, 2016

Hi - here's the latest I have from the PM - let me know if it's not
responsive to the issues you have been having.

"We did that a couple releases ago. It's a little confusing how it works
though.

https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_sharingrules.htm
"

On Mon, Apr 25, 2016 at 5:15 PM, sathishvenks notifications@github.com
wrote:

Hello - Is there any update on this issue please?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#65 (comment)

@sathishvenks

This comment has been minimized.

Copy link

commented May 6, 2016

Hello - I just tested and am still getting the error which Andrew reported on Apr 8 2015.
Required field is missing: sharingTerritoryRules (FIELD_INTEGRITY_EXCEPTION).

@BudVieira

This comment has been minimized.

Copy link

commented May 9, 2016

Sorry for the back and forth - is there an open case for this? If not, can you file one and email to me?

Thanks!

On Apr 25, 2016, at 5:15 PM, sathishvenks notifications@github.com wrote:

Hello - Is there any update on this issue please?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

@sakhuja123

This comment has been minimized.

Copy link

commented Jun 28, 2016

Hi BudVeira,
I am getting the below error if it helps pinpoint the issue.

Line: 1607, Column: 1
MetadataServiceExamples.MetadataServiceExamplesException: Error occured processing component Account. An unexpected error occurred. Please include this ErrorId if you contact support: 742426493-2473785 (590330347) (UNKNOWN_EXCEPTION).

@BudVieira

This comment has been minimized.

Copy link

commented Jun 29, 2016

Hi Prashant - are there any SFDC customer Cases associated with this that you can forward?

On Jun 27, 2016, at 11:49 PM, Prashant Sakhuja notifications@github.com wrote:

Hi BudVeira,
I am getting the below error if it helps pinpoint the issue.

Line: 1607, Column: 1
MetadataServiceExamples.MetadataServiceExamplesException: Error occured processing component Account. An unexpected error occurred. Please include this ErrorId if you contact support: 742426493-2473785 (590330347) (UNKNOWN_EXCEPTION).


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@afawcett

This comment has been minimized.

Copy link
Contributor Author

commented Jun 30, 2016

I'm happy to raise one if not. Do you want me to raise one @BudVieira ?

@BudVieira

This comment has been minimized.

Copy link

commented Jun 30, 2016

Hi Andrew - yes, please do, and copy or mention me into it. I'll see if
this is on the road map, / come to the attention of the Sharing team.

On Thu, Jun 30, 2016 at 10:56 AM, Andrew Fawcett notifications@github.com
wrote:

I'm happy to raise one if not. Do you want me to raise one @BudVieira
https://github.com/BudVieira ?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#65 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AFPfzYFAJXd9A17u6Ab_By9yFDG-C9pDks5qRANTgaJpZM4DLQGw
.

@shub-rai

This comment has been minimized.

Copy link

commented Sep 12, 2017

@afawcett , @BudVieira : Andrew/Bud any luck with this? In the mean time I'm also trying an approach to see if it works. Will keep the group posted.

@BudVieira

This comment has been minimized.

Copy link

commented Sep 13, 2017

@afawcett

This comment has been minimized.

Copy link
Contributor Author

commented Nov 26, 2017

I am sorry it dropped off my radar, i'll do it next week. 👍

@shmuelko

This comment has been minimized.

Copy link

commented Apr 24, 2018

Hi there,

I just recently encountered with this great Metadata Service.

I trying to create Sharing Rule for Account (AccountSharingRules) but even if I use the Example "MetadataServiceExamples.createSharingRule();" I get this error:
"Line: 1657, Column: 1
MetadataServiceExamples.MetadataServiceExamplesException: Error occured processing component Test__c. Not available for deploy for this organization. (FIELD_INTEGRITY_EXCEPTION)."

Can I use this Git to create Sharing Rule? Is it some organization settings that I need to change?

Some help would be greatly appreciated.

Thanks,
Shmuel

@afawcett

This comment has been minimized.

Copy link
Contributor Author

commented Oct 15, 2018

@shmuelko can you share some sample code to reproduce this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
7 participants
You can’t perform that action at this time.