Skip to content
This repository has been archived by the owner on Jun 1, 2021. It is now read-only.

Add record to new module #6

Open
sbainotti opened this issue May 7, 2015 · 1 comment
Open

Add record to new module #6

sbainotti opened this issue May 7, 2015 · 1 comment

Comments

@sbainotti
Copy link

Hi, thanks in advance.
I need to add a record to a module I created. My new module has four fields and he is named "Logins". I created a class with the fields, and it inherits from ZohoEntity(abstract class). But always he ask for ModuleName. I created a ModuleNameAttribute but doesn't work.
Could you provide me an example that how I should insert a record to a custom module?
Thanks and regards from Argentina.

@jjthebig1
Copy link

jjthebig1 commented Feb 23, 2017

You need to provide the internal name for the module. In my case, I found that Zoho named my module "CustomModule1", so I used the following attribute and it works: "[ModuleName("CustomModule1")]

You can get the list of modules and their internal names by submitting a GET request with the following URL:

https://crm.zoho.com/crm/private/json/Info/getModules?authtoken={token goes here}&scope=crmapi

The Content property is what you need to use as the attribute. See screenshot below:

zoho modules_li

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants