Skip to content

Enable Activity Feeds on Entities/Tables via Sql4Cds #341

Answered by MarkMpn
SiPurdy asked this question in Q&A
Discussion options

You must be logged in to vote

I'm working on including this in the next version. It should also be possible to execute SetState using the stored procedure syntax but there's a bug passing in the OptionSetValue parameters which I'll try to fix at the same time. The new syntax will be:

select
    msdyn_name
from msdyn_postruleconfig
where
    msdyn_name = '5EF5871D-FE40-4EB9-9952-39B0AC611895'

-- Enable Activity Feeds on Required Tables
update msdyn_postconfig set
    statecode=0,
    statuscode=0
where
    statecode=1 and
    msdyn_entityname in ('cr815_newtable')
OPTION (MAXDOP 1, USE HINT('BATCH_SIZE_1', 'USE_LEGACY_UPDATE_MESSAGES'))

-- Publish Customisations if changes have been made    
if @@ROWCOUNT > 0 begin

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@SiPurdy
Comment options

@MarkMpn
Comment options

@SiPurdy
Comment options

@MarkMpn
Comment options

Answer selected by SiPurdy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants