Skip to main content
Solved

Create custom entity for storing credentials in Acumatica


Forum|alt.badge.img+2
  • Varsity I
  • 283 replies

Hi,

In this topic 

 

I asked for possibility to store credentials for ftp server connection in Acumatica custom entity

How to do it in a right way ?

When I created custom entity, it required Screen Name of the  already existing entity

What should I choose ?

Best answer by jinin

Hi @Ivan 

I’ve added a sample custom screen and endpoint for your reference. Please make the necessary changes as per your requirement.

View original
Did this topic help you find an answer to your question?

20 replies

jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • 706 replies
  • April 21, 2022

Hi @Ivan 

Before creating the custom entity, you need to create a custom screen with input fields and write the logic to store the data in the custom table.

Then you need to create the entity in the endpoint.


Forum|alt.badge.img+2
  • Author
  • Varsity I
  • 283 replies
  • April 21, 2022

Hi @jinin 

Writing logic to store the data in custom table requires creating class for new screen where such logic will be implemented or after creating custom screen fields will be ready for using them in my customization project ?


jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • 706 replies
  • April 21, 2022

I will provide you sample tomorrow


Forum|alt.badge.img+2
  • Author
  • Varsity I
  • 283 replies
  • April 21, 2022
jinin wrote:

I will provide you sample tomorrow

@jinin Thanks a lot, I will be waiting !

Acumatica version 2021R2


jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • 706 replies
  • Answer
  • April 22, 2022

Hi @Ivan 

I’ve added a sample custom screen and endpoint for your reference. Please make the necessary changes as per your requirement.


Forum|alt.badge.img+2
  • Author
  • Varsity I
  • 283 replies
  • April 22, 2022
jinin wrote:

Hi @Ivan 

I’ve added a sample custom screen and endpoint for your reference. Please make the necessary changes as per your requirement.

Hi @jinin 

thanks a lot for providing vast amount of help

I will check it out and let you know


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • 2783 replies
  • April 28, 2022

Hi @Ivan have you been able to resolve your issue? Thank you!


Forum|alt.badge.img+2
  • Author
  • Varsity I
  • 283 replies
  • May 3, 2022
jinin wrote:

Hi @Ivan 

I’ve added a sample custom screen and endpoint for your reference. Please make the necessary changes as per your requirement.

Hi @jinin 

Sorry that I have not been responded for a long period of time.

Please, help me to clarify such moments : 

1)You wrote the following : “I’ve added a SAMPLE CUSTOM SCREEN and endpoint for your reference.”

it means that SAMPLE CUSTOM SCREEN Custom Project that you have prepared earlier for work with Automation schedules, I do not need to include now, right ? It strange that it does not show screen name for your new Custom Project.

2)I thought that it would be just new entity inside existing endpoint, but you provided a new endpoint with new entity, will it cause some conflicts with my custom endpoint with which I am working for the project ?

3)The code you provided contain commented rows, can I just uncomment or it requires some additional logic to be written ? CustomTable here is just usual class that I need to define, am I right ?

4)Once I save my credentials to Acumatica, how can I get them in my code ?


Forum|alt.badge.img+2
  • Author
  • Varsity I
  • 283 replies
  • May 3, 2022
Chris Hackett wrote:

Hi @Ivan have you been able to resolve your issue? Thank you!

Hi @Chris Hackett 

I have some questions to clarify,

Sorry for holding this case for so long


jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • 706 replies
  • May 4, 2022

Hi @Ivan 

  1. I created a new screen to support inserting the Username and password through the custom endpoint
  2. Its a new endpoint only supports inserting the data from the custom screen and does not conflict with your existing endpoints
  3. You can write your logic based on your requirement. I just added a sample code.
  4. You will get the input from the API request (Filter fields - user name and password). You need to write the logic and save it to DB

Forum|alt.badge.img+2
  • Author
  • Varsity I
  • 283 replies
  • May 5, 2022
jinin wrote:

Hi @Ivan 

  1. I created a new screen to support inserting the Username and password through the custom endpoint
  2. Its a new endpoint only supports inserting the data from the custom screen and does not conflict with your existing endpoints
  3. You can write your logic based on your requirement. I just added a sample code.
  4. You will get the input from the API request (Filter fields - user name and password). You need to write the logic and save it to DB

Hi @jinin 

Thanks !

I mistakenly choose my question instead of your answer as BEST ANSWER. Is there ability at forum to mark your reply as best answer ?


jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • 706 replies
  • May 5, 2022

I think we can't change :)

@Chris Hackett   Do we have any option to change the Best Answer?


jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • 706 replies
  • May 5, 2022

Hi @Ivan Am not sure about this

 

@Chris Hackett  Do we have any option to change the Best Answer?


Forum|alt.badge.img+2
  • Author
  • Varsity I
  • 283 replies
  • May 5, 2022
jinin wrote:

Hi @Ivan Am not sure about this

 

@Chris Hackett  Do we have any option to change the Best Answer?

@jinin   I am sorry about that ((


jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • 706 replies
  • May 5, 2022
Ivan wrote:
jinin wrote:

Hi @Ivan Am not sure about this

 

@Chris Hackett  Do we have any option to change the Best Answer?

@jinin   I am sorry about that ((

No issues :)


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • 2783 replies
  • May 5, 2022

Hi @Ivan I have removed “Best Answer” so you can choose the one you wish to mark now. 😀


Forum|alt.badge.img+2
  • Author
  • Varsity I
  • 283 replies
  • May 5, 2022
Chris Hackett wrote:

Hi @Ivan I have removed “Best Answer” so you can choose the one you wish to mark now. 😀

Hi @Chris Hackett , thanks. I selected jinin’s answer


Forum|alt.badge.img+2
  • Author
  • Varsity I
  • 283 replies
  • July 4, 2022

Hi @jinin 

You created custom screen for me for storing credentials

I need to add new field - Url

I added it at endpoint, but nothing appeared in view 

How it must be modified in order to add new field ?

thanks in advance 


jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • 706 replies
  • July 5, 2022

Forum|alt.badge.img+2
  • Author
  • Varsity I
  • 283 replies
  • August 1, 2022

HI @jinin 

I need your assistance with this customization project again.

My goal is merge all customization projects into one single and use new package for other Acumatica instances with same version 2021R2

In this topic 

It was described how to merge 3 customization projects into one single.

With the new package that contains also your package “Custom Endpoint” I receive such  error while publishing my new customization package that contains also “Custom Endpoint” package that you provided for me

I tried to change namespace CustomEndpoint for which I receive error  to my project name namespace, but it become unworkable, so I cancelled changes.

Just to be sure that I described everything :

  1. I merged customization project into one 

    by viewing published 

    1. I tried to publish it to another Acumatica instance but get error for your customization package

Please, help to solve this


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings