-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Remote CiviCRM? #1
Comments
@davidjosephhayes yes, go for it! If you want to submit some documentation PRs as well, that would be super too. |
Awesome! I'll circle back around as my project comes together. Thanks! |
Speaking of documentation, I am a big confused how the webhook works with the settings detailed on #11 . With the explanation given, I am seeing the webhook request body in the debugger as json similar to:
And receiving an error response from CiviCRM.
I am not too familiar with Form Processor specifically, but the API Explorer seems to indicate that it would like the json nested under a json variable in the request body. Similar to:
I can make a pull request to fix this if it is an issue, but I want to make sure I am not missing anything obvious first. Thoughts? |
@davidjosephhayes so I don't think a PR is required, because this works. It's more like the documentation is wrong or the example for form processor is wrong. They were based on a working environment, so should be OK. Did you check that all the steps were done as per https://github.com/agileware/gf-civicrm/blob/main/README.md#setting-up-a-newsletter-subscription-form-using-gravity-forms-and-civicrm And in particular, make sure the request URL in Gravity Forms, Web Form is correct. |
I have a project on which remote support is needed. I am happy to contribute to this plugin. My approach would be:
Two questions:
|
Hi @jaapjansma Our original approach was very similar to what you propose here, as in the CMRF-experiment branch. Our concerns with this though is that the CMRF_Abstract_Core class and the mcrestface connector plugin introduces too much magic and too many layers of indirection, that we're not keen to do technical support on in the future. So an API wrapper function sounds about right, although note we do have some APIv4 functions in there as well (Contact selection via SearchKit for example) - and would prefer to wrap APIv4 TBH and remove all the v3 code. Otherwise we're happy to review pull requests for this function. |
Ah okay. I see, yes the CMRF_Abstact_Core is a bit abstract and complex to understand first. It is also from a technical point of view not the cleanest solution. I will probably develop something new then rather than fiddling with this extension. |
@jaapjansma it would be good to collaborate to add remote CiviCRM support to this plugin, instead of creating a new plugin. |
Hello! This looks super cool. I installed on a test site this evening to try it out, but immediatly got an error:
Call to undefined function GFCiviCRM\\civicrm_initialize()
. Obviously, the plugin is currently intended for local CiviCRM installs but I was going to attempt a remote form submit.Looks like development is happening fast. Would you be interested in some pull requests to add remote CiviCRM support?
The text was updated successfully, but these errors were encountered: