SFDO-Community / declarative-lookup-rollup-summaries

Declarative Lookup Rollup Summaries (DLRS) is a community built and maintained Salesforce application that allows you to create cross object roll-ups declaratively - no code! For install instructions and documentation, visit our website https://sfdo-community-sprints.github.io/DLRS-Documentation/
https://sfdo-community-sprints.github.io/DLRS-Documentation/
BSD 3-Clause "New" or "Revised" License
696 stars 238 forks source link

Using in Professional Edition #478

Closed faceroy closed 7 years ago

faceroy commented 7 years ago

Hi,

Firstly, I love this tool... so was delighted when I saw that it was available in professional orgs. However, I'm having difficulty setting this up. I've followed your blog post but I'm unable to see the 'Call Apex' option in the process builder.

Any pointers on how I can configure this in a PE org?

Many thanks

SamuelHaddad commented 7 years ago

Hi,

I face the same issue than @faceroy, I can’t find the “Call Apex” choice in the “Action type” Section:

capture d ecran 2017-03-14 a 19 51 10

What can I do to finish the creation of my process builder?

Thanks in advance and thank you for this tool

afawcett commented 7 years ago

Copy over from https://github.com/afawcett/declarative-lookup-rollup-summaries/issues/341....

Thats really odd, your missing the Apex Action action type? I have never seen that before. . I wonder if there is some restriction in PE orgs? If so, i wonder how i have ever got reports of DLRS working in PE tbh? The documentation seems to suggest it is fine in PE though....

This is what i see, though this is in a DE org...

image

I did some searching, not 100% sure, but wondering if its this known issue??? The above documentation link also notes this... "If you define an Apex action in your process and then modify the Apex class by adding a standard field reference (for example, User.Phone), the Apex action is no longer visible in the process and must be added again."

Clearly though you are not writing an invocable method or for that matter changing it.... So it does not 100% add up to me yet. I also see from your screenshot your missing a few other options. I think its worth asking Salesforce support why your missing this feature. Does it occur when you create a brand new process as well btw?

afawcett commented 7 years ago

Also just seen this....

afawcett commented 7 years ago

Aha.... check this out...

Summary After deploying a process, or when refreshing a sandbox, you might notice upon opening the process and reviewing its actions that it might be missing Apex Class actions that reference fields not exposed by tooling API.

Repro

  1. On a Fresh Org, prepare a Process with an Action that has an Apex Class as an action that references a field not exposed by tooling API.
  2. Prepare this process as part of a package
  3. Deploy this package (using Workbench or Force.com IDE)
  4. While deploying, select Test Level: NoTestRun
  5. After it successfully deploys, review the process - The apex action will be missing

Alternatively, simply refreshing or creating a sandbox will copy the process but the Apex action will be missing.

Workaround Go To Setup |Apex Classes| Compile All Classes

This should resolve the missing Apex from the process.

faceroy commented 7 years ago

Thanks but don't have the option to compile all classes in a PE org.

afawcett commented 7 years ago

Then i think its best you raise a case with Salesforce to get them to look at this. It would be great if you can follow up here for future readers. 👍

faceroy commented 7 years ago

Hey @afawcett,

I contacted SF support regarding this one. I have been advised that in order to have the 'Call Apex' action exposed in SF you need to have API enabled. Therefore, I'd say that Professional Edition is only supported in orgs where API is enabled.

Hope this helps.

matti-sch commented 7 years ago

Hi both. I have API enabled and have never had the APEX action in the Process Builder.

As per the support of the 3rd party supplier of Taskray; they say the APEX action in Proces Builder is not supported in PE.

Would this mean hat we can't use "declarative-lookup-rollup-summaries" with PE - or does it only bring som restrictions?

faceroy commented 7 years ago

Thanks @matti-sch I thought as much and wasn't convinced by the response I received from support.

@afawcett - leads me back to wondering if/how/why you have had reports of users utilising DLRS IN PE orgs.

AB

afawcett commented 7 years ago

Ok so according to this https://github.com/afawcett/declarative-lookup-rollup-summaries/issues/341 its Lightning Professional Edition, does that make a different i wonder?

afawcett commented 7 years ago

@faceroy Let me know if you had a chance to confirm if "Lightning Professional Edition" had the feature?

rlwbarnes commented 7 years ago

@afawcett - According to Salesforce Support, APEX is not a Process Builder option in ANY version of the Professional Edition. And enabling the API will not change access to APEX actions. @matti-sch is right. So, I'm currently doing manual calculations on a daily basis.

afawcett commented 7 years ago

@rlwbarnes Thanks for confirming, this is sad. I guess you could always use the scheduled calculate mode though in PE, would that work?

rlwbarnes commented 7 years ago

I will give that option a try. Right now the client is updating manually on a daily basis OR right before reports are run.

Regards,

Rachel Barnes | Director of Technology 281 433 7632

From: Andrew Fawcett [mailto:notifications@github.com] Sent: Saturday, July 29, 2017 3:23 PM To: afawcett/declarative-lookup-rollup-summaries declarative-lookup-rollup-summaries@noreply.github.com Cc: Rachel Barnes rachel.barnes@halftimetalent.com; Mention mention@noreply.github.com Subject: Re: [afawcett/declarative-lookup-rollup-summaries] Using in Professional Edition (#478)

@rlwbarneshttps://github.com/rlwbarnes Thanks for confirming, this is sad. I guess you could always use the scheduled calculate mode though in PE, would that work?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/afawcett/declarative-lookup-rollup-summaries/issues/478#issuecomment-318856953, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ASUMTg_FeOG9hTJBo-uFZ3Vva27o5wDKks5sS5SOgaJpZM4MbU1L.

robinkoehler commented 6 years ago

Hi team, I've been pulling my hair out over this due to the PE Apex limitation after I successfully got everything to work run from process builder in the dev org...

My understanding of the technology used here is limited, however would it be possible to create "Lookup Rollup Calculate Job" records via process builder instead of calling Apex? Do these records run the lookups when created?

Many thanks in advance,

Robin

robinkoehler commented 6 years ago

@afawcett Thanks for confirming, this is sad. I guess you could always use the scheduled calculate mode though in PE, would that work?

I'm just trying this to retain some of the functionality and am greeted with the "child trigger not deployed" message. My understanding is I wouldn't

Is that basically correct?

Much appreciated,

Robin