Hi,
My question is regarding the database itself not just the API, I hope this is fine?
Users can mark contractor jobs as completed on simPRO GUI, I am struggling to find which table is this being saved to, does anyone know? None of the columns in simpro_contractor_jobs appear to have this data saved. I need this 'completed' flag for a custom native query in BI reports.
Thanks in advance,
Grace
Contactor Jobs Completed flag
Forum rules
- Check the documentation first. Before posting questions, please check the documentation to ensure it doesn't already cover what you need.
- No spam. All automated messages, advertisements, and links to competitor websites will be deleted immediately.
- Post in relevant sub-forums only. Messages posted in the wrong topic area will be removed and placed in the correct sub-forum by moderators.
- Respect other users. No flaming or abusing fellow forum members. Users who continue to post inflammatory, abusive comments will be deleted from the forum after two warnings are issued by moderators.
- Harassment. No threats or harassment of other users will be tolerated. Any instance of threatening or harassing behavior is grounds for deletion from the forums.
- Adult content. No profanity or pornography is allowed. Posts containing adult material will be deleted.
- Bandwidth. All images and signatures must be 500 x 500 pixels or smaller. Posts containing over-sized images and signatures will be removed.
- Illegal content. No re-posting of copyrighted materials or other illegal content is allowed. Any posts containing illegal content or copyrighted materials will be deleted.
-
robbertcha
- Posts: 416
- Joined: Thu Apr 15, 2021 10:07 pm
Re: Contactor Jobs Completed flag
Hi,
simPRO will save the date for the contractor job on the database when it is marked as 'completed', so please check a field called 'complete_date' in contractor_jobs table.
simPRO will save the date for the contractor job on the database when it is marked as 'completed', so please check a field called 'complete_date' in contractor_jobs table.
Robbert
API Developer | simPRO Software Group
API Developer | simPRO Software Group
Re: Contactor Jobs Completed flag
Thanks robbertcha for trying to help,robbertcha wrote: ↑Wed Mar 09, 2022 10:01 pm Hi,
simPRO will save the date for the contractor job on the database when it is marked as 'completed', so please check a field called 'complete_date' in contractor_jobs table.
Looking at simpro_contractor_jobs table schema the only columns available are:
'contractor_job_id', 'date', 'contractor_id', 'contractor', 'contact', 'material_cost', 'labour_cost', 'tax_code', 'job_costcentre_id', 'job_id', 'quote_cost_centre_id', 'quote_id', 'currency', 'exchange_rate'.
The 'date' column appears to be a contractor job creation date, not a completion date.
The information schema doesn't have any table with a column called 'complete_date'.
There is 'completed_date' in simpro_jobs, but that refers to a job, not a contractor job;
simpro_task has 'date_completed', but that has no relation to simpro_contractor_jobs.
I am still very confused.
-
robbertcha
- Posts: 416
- Joined: Thu Apr 15, 2021 10:07 pm
Re: Contactor Jobs Completed flag
Hi,
It seems not an API-related issue, but I will talk to our engineers in other teams first and get back to your when I got the answer, thank you.
It seems not an API-related issue, but I will talk to our engineers in other teams first and get back to your when I got the answer, thank you.
Robbert
API Developer | simPRO Software Group
API Developer | simPRO Software Group
Re: Contactor Jobs Completed flag
Hi @robbertcha,
I don't think you have any more information for me, do you?
My guess is that the simpro tables available for BI report SQL queries are not 1-2-1 copies of the underlying database, but perhaps views of the database, where not all columns are included, is my guess correct?
I see that API call do return the status of contractor jobs, so I am just trying to decide if I need to completely ditch the native queries avenue in favour of working with the API?
Thanks in advance for your time advising me.
Grace
I don't think you have any more information for me, do you?
My guess is that the simpro tables available for BI report SQL queries are not 1-2-1 copies of the underlying database, but perhaps views of the database, where not all columns are included, is my guess correct?
I see that API call do return the status of contractor jobs, so I am just trying to decide if I need to completely ditch the native queries avenue in favour of working with the API?
Thanks in advance for your time advising me.
Grace
-
robbertcha
- Posts: 416
- Joined: Thu Apr 15, 2021 10:07 pm
Re: Contactor Jobs Completed flag
Hi,
The tables and columns available for BI report might be different with the one using in simPRO application, so we suggest to use API in your case and you are able to grab all the data you need.
The tables and columns available for BI report might be different with the one using in simPRO application, so we suggest to use API in your case and you are able to grab all the data you need.
Robbert
API Developer | simPRO Software Group
API Developer | simPRO Software Group
DEVELOPER CENTER