web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Update Closed Jobs

(0) ShareShare
ReportReport
Posted on by 150

Hello Everyone

i'm trying to update an empty field in Jobs entity for the completed jobs using on demand workflow. but the workflow didn't work so i'm not able to update them.

Any Idea if we can update completed jobs in dynamics crm 2015 using workflow

Thanks and Regards,

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    Hi Adel

    You can create utility. With workflow we cannot update existing read only records.

    Thanks

    Ridhima

  • Adel Orabi Profile Picture
    150 on at

    can you please explain what do you mean by utility?

    Thank you

  • Verified answer
    Community Member Profile Picture
    on at

    You can create window form application c#. Create connection with crm and get service then update records.

    Use below code for connection

    private Uri homeRealUri = null;

            IOrganizationService service = null;

           private OrganizationServiceProxy serviceOrganizationProxy = null;

           private ClientCredentials credentials;

           private Uri organizationUri;

           public IOrganizationService getService()

           {

               credentials = new ClientCredentials();

               credentials.Windows.ClientCredential = CredentialCache.DefaultNetworkCredentials;

               credentials.UserName.UserName = "";

               credentials.UserName.Password = "";

               string orgUrl = "";

               if(!String.IsNullOrEmpty(orgUrl) && orgUrl.Contains("https"))

               {

                   ServicePointManager.ServerCertificateValidationCallback = delegate (object s, X509Certificate Certificate, X509Chain Chain,

                   SslPolicyErrors PolicyErrors)

                     {

                         return true;

                     };

                   System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

               }

               organizationUri = new Uri(orgUrl);

               using (

               serviceOrganizationProxy = new OrganizationServiceProxy(organizationUri, homeRealUri, credentials, null))

               {

                  // serviceOrganizationProxy.EnableProxyTypes();

                   serviceOrganizationProxy.ServiceConfiguration.CurrentServiceEndpoint.Behaviors.Add(new ProxyTypesBehavior());

                   service = serviceOrganizationProxy;

               }

               return service;

           }

    Hope it helps,

    Thanks

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi Adel,

    Are you trying to update a system job entity? Or you have your own custom entity with name as Job? Could you please share some more details on your implementation. If the record status is inactive then you may not be able to edit it using UI but there are few workarounds to update inactive records as well.

  • Adel Orabi Profile Picture
    150 on at

    Hello,

    i'm trying to update a system job entity. i've tried to update them using UI and on demand workflow.

    can you send me the workarounds to update inactive records

    Thank you

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

    I am sorry but you can't update system jobs. These are internal system jobs and the status will be changed based on the job itself. Can you share a screenshot, please?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans